summaryrefslogtreecommitdiff
path: root/lib/soap/property.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/soap/property.rb')
-rw-r--r--lib/soap/property.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/soap/property.rb b/lib/soap/property.rb
index 51f2e82628..0dc4551052 100644
--- a/lib/soap/property.rb
+++ b/lib/soap/property.rb
@@ -320,7 +320,7 @@ end
# for ruby/1.6.
-unless Enumerable.instance_methods.include?('inject')
+if RUBY_VERSION < "1.8" then
module Enumerable
def inject(init)
result = init