Sha256: 3ccfd5a40d6adf3801457cd3df7589d68f03c5eba25a45c61b7747e0c0bf540a
Contents?: true
Size: 942 Bytes
Versions: 1
Compression:
Stored size: 942 Bytes
Contents
# These methods are automatically added to all controllers and views. module Cell module RailsExtensions module ActionController def cell(name, *args, &block) ViewModel.cell(name, self, *args, &block) end def concept(name, *args, &block) Concept.cell(name, self, *args, &block) end end module ActionView # Returns the cell instance for +name+. You may pass arbitrary options to your # cell. # # = cell(:song, :title => "Creeping Out Sara").render(:show) def cell(name, *args, &block) controller.cell(name, *args, &block) end # # See Cells::Rails::ActionController#render_cell. # def render_cell(name, state, *args, &block) # ::Cell::Rails.render_cell(name, state, controller, *args, &block) # end def concept(name, *args, &block) controller.concept(name, *args, &block) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cells-4.0.0.beta4 | lib/cell/rails.rb |