From e002a68a4ec19c1d4278e9b523283f59fbe56be1 Mon Sep 17 00:00:00 2001 From: Evan Phoenix Date: Thu, 19 Feb 2015 15:11:08 -0800 Subject: Make the helpers a required argument --- actionpack/lib/action_dispatch/routing/routes_proxy.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_dispatch/routing/routes_proxy.rb b/actionpack/lib/action_dispatch/routing/routes_proxy.rb index 68602e1eb2..040ea04046 100644 --- a/actionpack/lib/action_dispatch/routing/routes_proxy.rb +++ b/actionpack/lib/action_dispatch/routing/routes_proxy.rb @@ -8,9 +8,9 @@ module ActionDispatch attr_accessor :scope, :routes alias :_routes :routes - def initialize(routes, scope, helpers=nil) + def initialize(routes, scope, helpers) @routes, @scope = routes, scope - @helpers = helpers || routes.url_helpers + @helpers = helpers end def url_options -- cgit v1.2.3