1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

This method is never called since 8e633e5058

This commit is contained in:
Akira Matsuda 2017-01-05 18:32:22 +09:00
parent 1db9e9e8f1
commit d8e0282af9

View file

@ -394,13 +394,6 @@ module ActiveRecord
protected
def clone_attribute_value(reader_method, attribute_name) # :nodoc:
value = send(reader_method, attribute_name)
value.duplicable? ? value.clone : value
rescue TypeError, NoMethodError
value
end
def arel_attributes_with_values_for_create(attribute_names) # :nodoc:
arel_attributes_with_values(attributes_for_create(attribute_names))
end