lib/so_meta/railtie.rb in so_meta-0.1 vs lib/so_meta/railtie.rb in so_meta-0.2
- old
+ new
@@ -1,9 +1,12 @@
require 'rails'
+require "so_meta/helper"
module SoMeta
class Railtie < Rails::Railtie
initializer "so_meta.helper" do
- ActionView::Base.send :include, SoMeta::Helper
+ ActiveSupport.on_load(:action_view) do
+ include SoMeta::Helper
+ end
end
end
end