Rails 3.2 ActiveSupport::Concern deprecation fix #11

Merged
merged 1 commit into from Jan 21, 2012
Jump to file or symbol
Failed to load files and symbols.
+7 −9
Split
@@ -39,16 +39,14 @@ def render_cell(*args)
end
end
- module InstanceMethods
- attr_reader :controller, :routes
+ attr_reader :controller, :routes
- def method_missing(method, *args, &block)
- # Send the route helpers to the application router.
- if @routes && @routes.named_routes.helpers.include?(method)
- @controller.send(method, *args, &block)
- else
- super
- end
+ def method_missing(method, *args, &block)
+ # Send the route helpers to the application router.
+ if @routes && @routes.named_routes.helpers.include?(method)
+ @controller.send(method, *args, &block)
+ else
+ super
end
end