method

write_inheritable_array

rails latest stable - Class: Class

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.1.0) is shown here.

write_inheritable_array(key, elements)
public

No documentation available.

# File activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb, line 139
  def write_inheritable_array(key, elements)
    write_inheritable_attribute(key, []) if read_inheritable_attribute(key).nil?
    write_inheritable_attribute(key, read_inheritable_attribute(key) + elements)
  end