Class: Cell::Base::View
- Inherits:
-
ActionView::Base
- Object
- ActionView::Base
- Cell::Base::View
- Defined in:
- lib/cell/base/view.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.prepare(modules) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/cell/base/view.rb', line 2 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 |
Instance Method Details
#render(*args, &block) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/cell/base/view.rb', line 9 def render(*args, &block) = args.first.is_a?(::Hash) ? args.first : {} # this is copied from #render by intention. return controller.render(*args, &block) if [:state] or [:view] super end |