rails/activerecord/test
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/connection_adapters introduce conn.data_source_exists? and conn.data_sources. 2015-09-22 19:48:44 +02:00
assets
cases Return true if attribute is not changed for update_attribute 2016-09-23 15:24:55 +05:30
fixtures Merge pull request #26466 from y-yagi/remove_duplicated_fixture_set_names 2016-09-13 13:21:28 -04:00
migrations modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
models Add tests for ActiveRecord::Enum#enum when suffix specified 2016-09-12 08:52:02 +09:00
schema Add tests for ActiveRecord::Enum#enum when suffix specified 2016-09-12 08:52:02 +09:00
support applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
.gitignore
config.example.yml Remove legacy mysql adapter 2015-12-17 15:54:57 +00:00
config.rb