Permalink
Browse files

Merge pull request #10015 from vipulnsward/remove_unused_variable_in_get

remove unused variable and assignment
  • Loading branch information...
2 parents fb613cb + f23e7eb commit 2f53c27b81ffaf3607279e4aca36eef38e2e6a5b @steveklabnik steveklabnik committed Mar 31, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 actionpack/lib/action_view/helpers/form_options_helper.rb
  2. +1 −1 actionpack/test/abstract_unit.rb
@@ -752,7 +752,7 @@ def value_for_collection(item, value)
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
@@ -332,7 +332,7 @@ def stderr_logger
module ActionDispatch
module RoutingVerbs
- def get(uri_or_host, path = nil, port = nil)
+ def get(uri_or_host, path = nil)
host = uri_or_host.host unless path
path ||= uri_or_host.path

0 comments on commit 2f53c27

Please sign in to comment.