Permalink
Browse files

send the helpers to the app

  • Loading branch information...
1 parent 120592a commit 0fe012792307bb2782be6f6fa1df3edcf81b8cf5 @mjankowski mjankowski committed Sep 2, 2011
Showing with 7 additions and 1 deletion.
  1. +1 −1 flutie.gemspec
  2. +6 −0 lib/flutie/engine.rb
View
2 flutie.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'flutie'
- s.version = '1.2.3'
+ s.version = '1.2.4'
s.date = %q{2011-09-02}
s.email = 'support@thoughtbot.com'
s.homepage = 'http://github.com/thoughtbot/flutie'
View
6 lib/flutie/engine.rb
@@ -1,6 +1,12 @@
module Flutie
class Engine < Rails::Engine
+ initializer 'page_title.helper' do |app|
+ ActionView::Base.send :include, PageTitleHelper
+ end
+ initializer 'body_class.helper' do |app|
+ ActionView::Base.send :include, BodyClassHelper
+ end
end
end

0 comments on commit 0fe0127

Please sign in to comment.