aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/routes_proxy.rb
diff options
context:
space:
mode:
authorEvan Phoenix <evan@phx.io>2015-02-19 15:11:08 -0800
committerEvan Phoenix <evan@phx.io>2015-02-19 15:11:08 -0800
commite002a68a4ec19c1d4278e9b523283f59fbe56be1 (patch)
tree7296224640c3a88cab40f67a0e10ef917c268df6 /actionpack/lib/action_dispatch/routing/routes_proxy.rb
parent43dae996457caa520e845e038b5a4aa6297c4a17 (diff)
downloadrails-e002a68a4ec19c1d4278e9b523283f59fbe56be1.tar.gz
rails-e002a68a4ec19c1d4278e9b523283f59fbe56be1.tar.bz2
rails-e002a68a4ec19c1d4278e9b523283f59fbe56be1.zip
Make the helpers a required argument
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/routes_proxy.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/routes_proxy.rb4
1 files changed, 2 insertions, 2 deletions
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