1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record
Rafael Mendonça França 4028bed812 Do not consider the numeric attribute as changed if the old value is
zero and the new value is not a string.

Before this commit this was the behavior

r = Review.find_by_issue(0)
r.issue
=> 0
r.changes
=> {}
r.issue = 0
=> 0
r.changed?
=> true
r.changes
=> {"issue"=>[0,0]}

Fixes #7237

Conflicts:
	activerecord/CHANGELOG.md
2012-08-02 14:13:45 -03:00
..
associations s/scoped/scope/ 2012-08-01 23:55:47 +01:00
attribute_methods Do not consider the numeric attribute as changed if the old value is 2012-08-02 14:13:45 -03:00
coders
connection_adapters Deprecate Relation#all. 2012-07-27 17:55:43 +01:00
fixtures
locale
locking Remove instance level quote_value method. This method is private and also exists in class method. 2012-07-14 03:06:18 +09:00
migration Create default join table name using a Symbol 2012-07-19 09:05:58 -03:00
railties Only require the :rails_env task where is needed. 2012-07-27 01:50:13 -03:00
relation AR::Relation#order: make new order prepend old one 2012-07-31 10:24:18 +03:00
scoping Deprecate ActiveRecord::Base.scoped. 2012-07-27 17:27:47 +01:00
serializers Fix serializable_hash with xml generation and default :except option 2012-06-22 08:28:26 -03:00
tasks Merge pull request #6838 from kennyj/added_registration_task 2012-07-07 05:58:01 -07:00
validations Merge pull request #6827 from zephyr-dev/master 2012-07-27 11:02:29 -07:00
aggregations.rb Revert "Removing composed_of from ActiveRecord." 2012-07-27 19:25:14 -03:00
associations.rb Revert "Remove :finder_sql, :counter_sql, :insert_sql, :delete_sql." 2012-08-01 19:46:31 +01:00
attribute_assignment.rb Revert "Removing composed_of from ActiveRecord." 2012-07-27 19:25:14 -03:00
attribute_methods.rb
autosave_association.rb stop using class_attribute where methods/inheritance will suffice. 2012-07-13 18:55:46 +01:00
base.rb
callbacks.rb Merge branch 'master' of github.com:lifo/docrails 2012-06-22 22:15:27 +05:30
connection_handling.rb
core.rb Revert "Removing composed_of from ActiveRecord." 2012-07-27 19:25:14 -03:00
counter_cache.rb
dynamic_matchers.rb Revert "Removing composed_of from ActiveRecord." 2012-07-27 19:25:14 -03:00
errors.rb Fixes #6825, adds tests covering cases and error possibilities, also changes SQLite3 driver to correctly generate a time column instead of datetime 2012-06-27 14:31:22 -03:00
explain.rb
explain_subscriber.rb explain listener does not care about time, so use evented listener 2012-06-20 14:20:55 -07:00
fixtures.rb Improve the derivation of HABTM assocation join table names 2012-06-22 06:27:11 +01:00
inheritance.rb Refactor ActiveRecord::Inheritance.base_class logic 2012-07-26 13:46:49 -04:00
integration.rb
log_subscriber.rb
migration.rb
model.rb Revert "Removing composed_of from ActiveRecord." 2012-07-27 19:25:14 -03:00
model_schema.rb Refactor to reset_table_name 2012-07-28 18:55:41 +04:00
nested_attributes.rb s/scoped/scope/ 2012-08-01 23:55:47 +01:00
null_relation.rb improve NullRelation docs [ci skip] 2012-07-21 21:45:32 +05:30
observer.rb Add documentation for ActiveRecord::Observer. 2012-07-13 18:58:29 +02:00
persistence.rb Remove the deprecation of update_column. 2012-07-30 10:50:18 -03:00
query_cache.rb Restore connection_id on error. 2012-07-23 00:46:00 +09:00
querying.rb ActiveRecord::Base.all returns a Relation. 2012-07-27 13:34:12 +01:00
railtie.rb The use_schema_cache_dump configuration moved to ActiveRecord. 2012-08-02 00:47:54 +09:00
readonly_attributes.rb
reflection.rb Revert "Removing composed_of from ActiveRecord." 2012-07-27 19:25:14 -03:00
relation.rb Refactor a bit 2012-08-01 21:59:51 +01:00
result.rb
sanitization.rb Revert "Removing composed_of from ActiveRecord." 2012-07-27 19:25:14 -03:00
schema.rb
schema_dumper.rb Merge pull request #4396 from kennyj/fix_4259 2012-06-20 14:08:23 -03:00
schema_migration.rb Remove duplicated unique index name. 2012-07-14 03:48:11 +09:00
scoping.rb
serialization.rb
session_store.rb missing require: the AR session store depends on the AP abstract store 2012-07-28 17:51:56 +02:00
store.rb Avoid to call send(store_attribute) twice. 2012-07-15 00:04:30 +09:00
test_case.rb
timestamp.rb
transactions.rb
translation.rb
validations.rb AR has a subclass of AM:PresenceValidator. 2012-07-20 17:37:57 -04:00
version.rb