diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-13 14:19:58 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-13 14:19:58 -0700 |
commit | b3d73e789cc8616fad30621e96f872bfd86ee099 (patch) | |
tree | 5e7ab6e35726dce9bd2c32a774a13407cc5c5521 /actionpack/lib | |
parent | 45d594fa53ce838110dcbddc1cf05af490b460a2 (diff) | |
download | rails-b3d73e789cc8616fad30621e96f872bfd86ee099.tar.gz rails-b3d73e789cc8616fad30621e96f872bfd86ee099.tar.bz2 rails-b3d73e789cc8616fad30621e96f872bfd86ee099.zip |
remove default arguments that aren't used
we always pass all parameters, so there is no reason to provide default
arguments.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index 2fe61c7aa6..35f1653a49 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -514,7 +514,7 @@ module ActionDispatch routes.empty? end - def add_route(app, conditions = {}, requirements = {}, defaults = {}, name = nil, anchor = true) + def add_route(app, conditions, requirements, defaults, name, anchor) raise ArgumentError, "Invalid route name: '#{name}'" unless name.blank? || name.to_s.match(/^[_a-z]\w*$/i) if name && named_routes[name] |