Permalink
Browse files

Convert from Engine to Railtie

  • Loading branch information...
1 parent f0419b0 commit 614297d608c9193f733d4511604ec1a48420880a @mjankowski mjankowski committed Feb 12, 2013
View
2 lib/flutie.rb
@@ -1,5 +1,5 @@
require 'flutie/version'
module Flutie
- require 'flutie/engine' if defined?(Rails)
+ require 'flutie/railtie' if defined?(Rails)
end
View
0 app/helpers/body_class_helper.rb → lib/flutie/body_class_helper.rb
File renamed without changes.
View
0 app/helpers/page_title_helper.rb → lib/flutie/page_title_helper.rb
File renamed without changes.
View
5 lib/flutie/engine.rb → lib/flutie/railtie.rb
@@ -1,6 +1,9 @@
+require 'flutie/body_class_helper'
+require 'flutie/page_title_helper'
+
module Flutie
- class Engine < Rails::Engine
+ class Railtie < Rails::Railtie
initializer 'page_title.helper' do |app|
ActionView::Base.send :include, PageTitleHelper
end

0 comments on commit 614297d

Please sign in to comment.