aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-03-31 19:34:40 +0530
committerVipul A M <vipulnsward@gmail.com>2013-03-31 19:34:40 +0530
commitf23e7eba52ccdb8e9c94334bff1a8e2dc2da22b7 (patch)
tree635267223c4fea25bdb496f56587257b0e3d3a93 /actionpack/lib/action_view
parent3b0b573ac3ecbec5b1fa021abbe86b267bbefb8c (diff)
downloadrails-f23e7eba52ccdb8e9c94334bff1a8e2dc2da22b7.tar.gz
rails-f23e7eba52ccdb8e9c94334bff1a8e2dc2da22b7.tar.bz2
rails-f23e7eba52ccdb8e9c94334bff1a8e2dc2da22b7.zip
remove unused variable and assignment
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/helpers/form_options_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_options_helper.rb b/actionpack/lib/action_view/helpers/form_options_helper.rb
index 377819a80c..8368e3de43 100644
--- a/actionpack/lib/action_view/helpers/form_options_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_options_helper.rb
@@ -752,7 +752,7 @@ module ActionView
end
def prompt_text(prompt)
- prompt = prompt.kind_of?(String) ? prompt : I18n.translate('helpers.select.prompt', :default => 'Please select')
+ prompt.kind_of?(String) ? prompt : I18n.translate('helpers.select.prompt', :default => 'Please select')
end
end