Module: Cell::RailsExtensions::ActionController

Defined in:
lib/cell/rails.rb

Instance Method Summary collapse

Instance Method Details

#cell(name, model = nil, options = {}, &block) ⇒ Object



5
6
7
# File 'lib/cell/rails.rb', line 5

def cell(name, model=nil, options={}, &block)
  ::Cell::ViewModel.cell(name, model, options.merge(controller: self), &block)
end

#concept(name, model = nil, options = {}, &block) ⇒ Object



9
10
11
# File 'lib/cell/rails.rb', line 9

def concept(name, model=nil, options={}, &block)
  ::Cell::Concept.cell(name, model, options.merge(controller: self), &block)
end