diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2007-09-22 19:02:51 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2007-09-22 19:02:51 +0000 |
commit | defb4d08dca88500f172da9e90e5af19187c7b08 (patch) | |
tree | 5dc84f7d16fe1ac028291e9fd5048d266479476e /actionpack/lib/action_controller | |
parent | 0442f1ea75ab83a6aed3851ef8b3201a925ad8a1 (diff) | |
download | rails-defb4d08dca88500f172da9e90e5af19187c7b08.tar.gz rails-defb4d08dca88500f172da9e90e5af19187c7b08.tar.bz2 rails-defb4d08dca88500f172da9e90e5af19187c7b08.zip |
Remove use of & logic operator. Closes #8114.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7571 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/routing.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index d1df7e6b43..0d78641b15 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -980,7 +980,7 @@ module ActionController warn "Route segment \"#{segment.to_s}\" cannot be optional because it precedes a required segment. This segment will be required." end segment.is_optional = false - elsif allow_optional & segment.respond_to?(:default) && segment.default + elsif allow_optional && segment.respond_to?(:default) && segment.default # if a segment has a default, then it is optional segment.is_optional = true end |