Module: Cells
- Defined in:
- lib/cells.rb,
lib/cells/rails.rb,
lib/cells/railtie.rb,
lib/cells/version.rb,
lib/generators/cells/base.rb,
lib/generators/cells/cell_generator.rb,
lib/generators/cells/view_generator.rb
Overview
These Methods are automatically added to all Controllers and Views when the cells plugin is loaded.
Defined Under Namespace
Modules: Generators, Rails Classes: Railtie
Constant Summary collapse
- VERSION =
'3.6.4'
Class Method Summary collapse
- .rails3_0? ⇒ Boolean
- .rails3_1? ⇒ Boolean
-
.setup {|Cell::Base| ... } ⇒ Object
Setup your special needs for Cells here.
Class Method Details
.rails3_0? ⇒ Boolean
74 75 76 |
# File 'lib/cells.rb', line 74 def self.rails3_0? ::Rails::VERSION::MINOR == 0 end |
.rails3_1? ⇒ Boolean
78 79 80 |
# File 'lib/cells.rb', line 78 def self.rails3_1? ::Rails::VERSION::MINOR == 1 end |
.setup {|Cell::Base| ... } ⇒ Object
Setup your special needs for Cells here. Use this to add new view paths.
Example:
Cells.setup do |config|
config.append_view_path << "app/view_models"
end
70 71 72 |
# File 'lib/cells.rb', line 70 def self.setup yield(Cell::Base) end |