aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2011-12-21 00:09:47 +0530
committerArun Agrawal <arunagw@gmail.com>2011-12-21 00:09:47 +0530
commitc01124ece64433c4e0dac30b00cd0a6f51edf102 (patch)
tree3fd2e7dc6e9cac976b523c1b0e25cdd4ec230c94 /activeresource
parent9bcd52ffca59998b21b5edf5d045a7eaed9b4a2f (diff)
downloadrails-c01124ece64433c4e0dac30b00cd0a6f51edf102.tar.gz
rails-c01124ece64433c4e0dac30b00cd0a6f51edf102.tar.bz2
rails-c01124ece64433c4e0dac30b00cd0a6f51edf102.zip
Removal dead code from my side :-)
Diffstat (limited to 'activeresource')
-rw-r--r--activeresource/lib/active_resource/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb
index 10cc727bd9..548990cb70 100644
--- a/activeresource/lib/active_resource/base.rb
+++ b/activeresource/lib/active_resource/base.rb
@@ -1413,7 +1413,7 @@ module ActiveResource
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 @@ module ActiveResource
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