diff options
author | Abhishek Jain <jainabhishek1610@gmail.com> | 2016-02-15 21:26:14 +0530 |
---|---|---|
committer | Abhishek Jain <jainabhishek1610@gmail.com> | 2016-02-15 21:26:14 +0530 |
commit | 6d133a482af2428cfb1b67714ce7ffcb5bbd5f29 (patch) | |
tree | a858838fba5c04770739036508bd418906b2caf2 /actionpack/lib/action_dispatch/routing | |
parent | 914e2002d8bf86d1c7047f4f6280dcf7b0c8bd19 (diff) | |
download | rails-6d133a482af2428cfb1b67714ce7ffcb5bbd5f29.tar.gz rails-6d133a482af2428cfb1b67714ce7ffcb5bbd5f29.tar.bz2 rails-6d133a482af2428cfb1b67714ce7ffcb5bbd5f29.zip |
Use a URL instead of an URL everywhere
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_dispatch/routing/url_for.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index 846b5fa1fc..310e98f584 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -289,7 +289,7 @@ module ActionDispatch if last.permitted? args.pop.to_h else - raise ArgumentError, "Generating an URL from non sanitized request parameters is insecure!" + raise ArgumentError, "Generating a URL from non sanitized request parameters is insecure!" end end helper.call self, args, options diff --git a/actionpack/lib/action_dispatch/routing/url_for.rb b/actionpack/lib/action_dispatch/routing/url_for.rb index f91679593e..28be189f93 100644 --- a/actionpack/lib/action_dispatch/routing/url_for.rb +++ b/actionpack/lib/action_dispatch/routing/url_for.rb @@ -173,7 +173,7 @@ module ActionDispatch route_name) when ActionController::Parameters unless options.permitted? - raise ArgumentError.new("Generating an URL from non sanitized request parameters is insecure!") + raise ArgumentError.new("Generating a URL from non sanitized request parameters is insecure!") end route_name = options.delete :use_route _routes.url_for(options.to_h.symbolize_keys. |