Class: Cell::Rails::View

Inherits:
ActionView::Base
  • Object
show all
Defined in:
lib/cell/rails.rb

Instance Method Summary collapse

Instance Method Details

#render(*args, &block) ⇒ Object



18
19
20
21
22
23
# File 'lib/cell/rails.rb', line 18

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