Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #10015 from vipulnsward/remove_unused_variable_in_get

remove unused variable and assignment
  • Loading branch information...
commit 2f53c27b81ffaf3607279e4aca36eef38e2e6a5b 2 parents fb613cb + f23e7eb
@steveklabnik steveklabnik authored
View
2  actionpack/lib/action_view/helpers/form_options_helper.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
View
2  actionpack/test/abstract_unit.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.