Module: HashExtensions

Defined in:
lib/multi_rails/core_extensions.rb

Instance Method Summary collapse

Instance Method Details

#reverse_merge(other_hash) ⇒ Object



13
14
15
# File 'lib/multi_rails/core_extensions.rb', line 13

def reverse_merge(other_hash)
  other_hash.merge(self)
end

#reverse_merge!(other_hash) ⇒ Object



17
18
19
# File 'lib/multi_rails/core_extensions.rb', line 17

def reverse_merge!(other_hash)
  replace(reverse_merge(other_hash))
end