diff options
author | Xavier Noria <fxn@hashref.com> | 2016-08-08 18:17:28 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-08-08 18:25:11 +0200 |
commit | 46f511685c91486295a418547bb08c2aa5e49cfc (patch) | |
tree | 4502840df5d33c9f6c985de405bad737785851f8 /actionpack/lib/action_dispatch/routing | |
parent | d8fe25274684eeb5ace1b5f84987776a5ab436f7 (diff) | |
download | rails-46f511685c91486295a418547bb08c2aa5e49cfc.tar.gz rails-46f511685c91486295a418547bb08c2aa5e49cfc.tar.bz2 rails-46f511685c91486295a418547bb08c2aa5e49cfc.zip |
revises more Lint/EndAlignment offenses
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 6 | ||||
-rw-r--r-- | actionpack/lib/action_dispatch/routing/polymorphic_routes.rb | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index a6b177480d..abbf6b06b6 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -1685,9 +1685,9 @@ to this: as = if !options.fetch(:as, true) # if it's set to nil or false options.delete(:as) - else - name_for_action(options.delete(:as), action) - end + else + name_for_action(options.delete(:as), action) + end path = Mapping.normalize_path URI.parser.escape(path), formatted ast = Journey::Parser.parse path diff --git a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb index eb96466aa5..4f1aaeefc8 100644 --- a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb +++ b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb @@ -248,9 +248,9 @@ module ActionDispatch named_route = if model.persisted? args << model get_method_for_string model.model_name.singular_route_key - else - get_method_for_class model - end + else + get_method_for_class model + end [named_route, args] end |