diff options
author | Jamis Buck <jamis@37signals.com> | 2005-06-25 09:20:38 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-06-25 09:20:38 +0000 |
commit | 17928b73473c0e15d51969a1426253b70af9eb09 (patch) | |
tree | d58713c715f1c765f216ad1275524632ace55a54 /actionpack/lib | |
parent | ebb6fb09280f828258432223fd543de9dfda6370 (diff) | |
download | rails-17928b73473c0e15d51969a1426253b70af9eb09.tar.gz rails-17928b73473c0e15d51969a1426253b70af9eb09.tar.bz2 rails-17928b73473c0e15d51969a1426253b70af9eb09.zip |
Eliminate a "string literal in condition" warning from some routes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1502 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/code_generation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/code_generation.rb b/actionpack/lib/action_controller/code_generation.rb index d2d7deb212..de11d4a496 100644 --- a/actionpack/lib/action_controller/code_generation.rb +++ b/actionpack/lib/action_controller/code_generation.rb @@ -187,7 +187,7 @@ module ActionController locals << local_name(key) end end - code = "(#{code} || #{default.inspect})" if default + code = "(#{code} || (#{default.inspect}))" if default return code end |