Sha256: 2d9d12f810331880416da946eb55e9065f381d12022bc4baa23c77f99758fa1e
Contents?: true
Size: 569 Bytes
Versions: 4
Compression:
Stored size: 569 Bytes
Contents
class Cell::Base::View < ActionView::Base def self.prepare(modules) # TODO: remove for 4.0 if PR https://github.com/rails/rails/pull/6826 is merged. Class.new(self) do # DISCUSS: why are we mixing that stuff into this _anonymous_ class at all? that makes things super complicated. include *modules.reverse end end def render(*args, &block) options = args.first.is_a?(::Hash) ? args.first : {} # this is copied from #render by intention. return controller.render(*args, &block) if options[:state] or options[:view] super end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cells-3.11.3 | lib/cell/base/view.rb |
cells-3.11.2 | lib/cell/base/view.rb |
cells-3.11.1 | lib/cell/base/view.rb |
cells-3.11.0 | lib/cell/base/view.rb |