aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/code_generation.rb2
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