Skip to content

Commit

Permalink
Merge branch 'patch-2' of https://github.com/timoschilling/cells
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Feb 8, 2016
2 parents 08a21a4 + 08d85c7 commit 43083e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cell/railtie.rb
Expand Up @@ -51,6 +51,7 @@ class Railtie < Rails::Railtie
# 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
# ViewModel.template_engine = app.config.app_generators.rails.fetch(:template_engine, 'erb').to_s
Expand Down

0 comments on commit 43083e3

Please sign in to comment.