1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove warnings on Ruby 2.1

This commit is contained in:
Rafael Mendonça França 2014-01-17 00:10:25 -02:00
parent 7252b43c6e
commit 5402b72faa
2 changed files with 9 additions and 1 deletions

View file

@ -228,7 +228,11 @@ module ActiveSupport
def to_options!; self end
def select(*args, &block)
dup.tap {|hash| hash.select!(*args, &block)}
dup.tap { |hash| hash.select!(*args, &block)}
end
def reject(*args, &block)
dup.tap { |hash| hash.reject!(*args, &block)}
end
# Convert to a regular hash with string keys.

View file

@ -28,6 +28,10 @@ module ActiveSupport
coder.represent_seq '!omap', map { |k,v| { k => v } }
end
def reject(*args, &block)
dup.tap { |hash| hash.reject!(*args, &block)}
end
def nested_under_indifferent_access
self
end