lib/jammit/controller.rb in jammit-0.1.2 vs lib/jammit/controller.rb in jammit-0.1.3
- old
+ new
@@ -82,6 +82,10 @@
end
::JammitController = Jammit::Controller
-ApplicationController.append_before_filter { Jammit.reload! } if RAILS_ENV == 'development'
+if RAILS_ENV == 'development'
+ ActionController::Base.class_eval do
+ append_before_filter { Jammit.reload! }
+ end
+end