Commit bc9821dc4320b86a1fb0d6ce0dc17d24206c5df1

Authored by Rodrigo Souto
1 parent 8298d81c

rails3: update dispatcher reference

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
vendor/plugins/noosfero_caching/init.rb
@@ -61,7 +61,7 @@ module NoosferoHttpCaching @@ -61,7 +61,7 @@ module NoosferoHttpCaching
61 end 61 end
62 62
63 unless Rails.env.development? 63 unless Rails.env.development?
64 - middleware = ActionController::Dispatcher.middleware 64 + middleware = Rails.application.config.middleware
65 ActionController::Base.send(:include, NoosferoHttpCaching) 65 ActionController::Base.send(:include, NoosferoHttpCaching)
66 middleware.use NoosferoHttpCaching::Middleware 66 middleware.use NoosferoHttpCaching::Middleware
67 end 67 end