rails/activerecord/lib
Prathamesh Sonpatki 730e99affb
Return true if attribute is not changed for update_attribute
- If the attribute is not changed, then update_attribute does not run
  SQL query, this effectively means that no change was made to the
  attribute.
- This change was made in https://github.com/rails/rails/commit/0fcd4cf5
  to avoid a SQL call.
- But the change resulted into `nil` being returned when there was no
  change in the attribute value.
- This commit corrects the behavior to return true if there is no change
  in attribute value. This is same as previous behavior of Rails 4.2
  plus benefit of no additional SQL call.
- Fixes #26593.
2016-09-23 15:24:55 +05:30
..
active_record Return true if attribute is not changed for update_attribute 2016-09-23 15:24:55 +05:30
rails/generators Fix broken comments indentation caused by rubocop auto-correct [ci skip] 2016-09-14 18:26:32 +09:00
active_record.rb Eager autoload ActiveRecord::TableMetadata 2016-08-15 14:12:08 -07:00