lib/china_regions/engine.rb in china_regions-0.0.1 vs lib/china_regions/engine.rb in china_regions-0.0.2
- old
+ new
@@ -1,5 +1,13 @@
require "rails"
module ChinaRegions
- class Engine < Rails::Engine;end
+ if ::Rails.version > "3.1"
+ class Engine < ::Rails::Engine; end
+ else
+ class Railtie < ::Rails::Railtie
+ ActiveSupport.on_load(:action_view) do
+ ::ActionView::Base.send :include, Penmanship::ActionView::Extension
+ end
+ end
+ end
end
\ No newline at end of file