Class: Cell::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- Cell::Railtie
- Defined in:
- lib/cell/railtie.rb
Constant Summary collapse
- IncludeTemplateModules =
->(app) do return if app.config.cells.include_template_engine == false # yepp, this is happening. saves me a lot of coding in each extension. ViewModel.send(:include, Cell::Erb) if Cell.const_defined?(:Erb, false) ViewModel.send(:include, Cell::Haml) if Cell.const_defined?(:Haml, false) ViewModel.send(:include, Cell::Hamlit) if Cell.const_defined?(:Hamlit, false) ViewModel.send(:include, Cell::Slim) if Cell.const_defined?(:Slim, false) end