Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Removal dead code from my side :-) #4075

Merged
merged 1 commit into from

3 participants

@arunagw
Collaborator

No description provided.

@guilleiguaran

Actually, I think is time for #572

@josevalim josevalim merged commit b31c2ed into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 20, 2011
  1. @arunagw
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 activeresource/lib/active_resource/base.rb
View
4 activeresource/lib/active_resource/base.rb
@@ -1413,7 +1413,7 @@ def find_or_create_resource_in_modules(resource_name, module_names)
namespaces = module_names[0, module_names.size-1].map do |module_name|
receiver = receiver.const_get(module_name)
end
- const_args = RUBY_VERSION < "1.9" ? [resource_name] : [resource_name, false]
+ const_args = [resource_name, false]
if namespace = namespaces.reverse.detect { |ns| ns.const_defined?(*const_args) }
namespace.const_get(*const_args)
else
@@ -1425,7 +1425,7 @@ def find_or_create_resource_in_modules(resource_name, module_names)
def find_or_create_resource_for(name)
resource_name = name.to_s.camelize
- const_args = RUBY_VERSION < "1.9" ? [resource_name] : [resource_name, false]
+ const_args = [resource_name, false]
if self.class.const_defined?(*const_args)
self.class.const_get(*const_args)
else
Something went wrong with that request. Please try again.