Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Convert from Engine to Railtie

  • Loading branch information...
commit 614297d608c9193f733d4511604ec1a48420880a 1 parent f0419b0
@mjankowski mjankowski authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.