lib/stache/railtie.rb in stache-0.9.1 vs lib/stache/railtie.rb in stache-1.0.0.rc
- old
+ new
@@ -5,7 +5,13 @@
end
config.to_prepare do
ApplicationController.send(:append_view_path, Stache.template_base_path)
end
+
+ initializer 'stache.extend_action_controller_base' do
+ ActiveSupport.on_load(:action_controller) do
+ Stache::System.setup
+ end
+ end
end
end