diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-02-28 19:54:42 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-02-28 19:58:45 +0900 |
commit | 42a16a4d6514f28e05f1c22a5f9125d194d9c7cb (patch) | |
tree | a0a393447e00b679dd93fa4350e873d5d3fb395f /activerecord | |
parent | 761122a6caf5030db8d791ed7d9ebf7afac529a2 (diff) | |
download | rails-42a16a4d6514f28e05f1c22a5f9125d194d9c7cb.tar.gz rails-42a16a4d6514f28e05f1c22a5f9125d194d9c7cb.tar.bz2 rails-42a16a4d6514f28e05f1c22a5f9125d194d9c7cb.zip |
Alias `assign_attributes` to `attributes=` for `AttributeAssignment`
There is no reason `attributes=` doesn't take `assign_attributes`.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/attribute_assignment.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/attribute_assignment.rb b/activerecord/lib/active_record/attribute_assignment.rb index 23a980318c..b6f0e18764 100644 --- a/activerecord/lib/active_record/attribute_assignment.rb +++ b/activerecord/lib/active_record/attribute_assignment.rb @@ -6,11 +6,6 @@ module ActiveRecord module AttributeAssignment include ActiveModel::AttributeAssignment - # Alias for ActiveModel::AttributeAssignment#assign_attributes. See ActiveModel::AttributeAssignment. - def attributes=(attributes) - assign_attributes(attributes) - end - private def _assign_attributes(attributes) |