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:
parent
7252b43c6e
commit
5402b72faa
2 changed files with 9 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue