method
clone_attributes
clone_attributes(reader_method = :read_attribute, attributes = {})
private
Hide source
# File activerecord/lib/active_record/base.rb, line 3176 def clone_attributes(reader_method = :read_attribute, attributes = {}) self.attribute_names.inject(attributes) do |attrs, name| attrs[name] = clone_attribute_value(reader_method, name) attrs end end