Method: Class#write_inheritable_hash

Defined in:
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/class/inheritable_attributes.rb

#write_inheritable_hash(key, hash) ⇒ Object



107
108
109
110
# File 'lib/gems/activesupport-2.2.2/lib/active_support/core_ext/class/inheritable_attributes.rb', line 107

def write_inheritable_hash(key, hash)
  write_inheritable_attribute(key, {}) if read_inheritable_attribute(key).nil?
  write_inheritable_attribute(key, read_inheritable_attribute(key).merge(hash))
end