aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-08-08 18:17:28 +0200
committerXavier Noria <fxn@hashref.com>2016-08-08 18:25:11 +0200
commit46f511685c91486295a418547bb08c2aa5e49cfc (patch)
tree4502840df5d33c9f6c985de405bad737785851f8 /actionpack/lib/action_dispatch
parentd8fe25274684eeb5ace1b5f84987776a5ab436f7 (diff)
downloadrails-46f511685c91486295a418547bb08c2aa5e49cfc.tar.gz
rails-46f511685c91486295a418547bb08c2aa5e49cfc.tar.bz2
rails-46f511685c91486295a418547bb08c2aa5e49cfc.zip
revises more Lint/EndAlignment offenses
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/journey/parser.rb4
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb6
-rw-r--r--actionpack/lib/action_dispatch/routing/polymorphic_routes.rb6
3 files changed, 8 insertions, 8 deletions
diff --git a/actionpack/lib/action_dispatch/journey/parser.rb b/actionpack/lib/action_dispatch/journey/parser.rb
index 91fef7e96f..7ec9d63859 100644
--- a/actionpack/lib/action_dispatch/journey/parser.rb
+++ b/actionpack/lib/action_dispatch/journey/parser.rb
@@ -192,5 +192,5 @@ module ActionDispatch
val[0]
end
end # class Parser
- end # module Journey
- end # module ActionDispatch
+ end # module Journey
+end # module ActionDispatch
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