This project is archived and is in readonly mode.
Changeset [f1c13b0dd7b22b5f6289ca1a09f1d7a8c7c8584b] by David Chelimsky
November 9th, 2010 @ 07:26 PM
use persisted? instead of new_record? wherever possible
- persisted? is the API defined in ActiveModel
- makes it easier for extension libraries to conform to ActiveModel APIs without concern for whether the extended object is specifically ActiveRecord
[#5927 state:committed]
Signed-off-by: Santiago Pastorino
santiago@wyeworks.com
https://github.com/rails/rails/commit/f1c13b0dd7b22b5f6289ca1a09f1d...
Committed by David Chelimsky
- M activerecord/lib/active_record/aggregations.rb
- M activerecord/lib/active_record/associations.rb
- M activerecord/lib/active_record/associations/association_collection.rb
- M activerecord/lib/active_record/associations/association_proxy.rb
- M activerecord/lib/active_record/associations/belongs_to_association.rb
- M activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb
- M activerecord/lib/active_record/associations/has_many_through_association.rb
- M activerecord/lib/active_record/associations/has_one_association.rb
- M activerecord/lib/active_record/associations/has_one_through_association.rb
- M activerecord/lib/active_record/attribute_methods/primary_key.rb
- M activerecord/lib/active_record/autosave_association.rb
- M activerecord/lib/active_record/base.rb
- M activerecord/lib/active_record/locking/optimistic.rb
- M activerecord/lib/active_record/locking/pessimistic.rb
- M activerecord/lib/active_record/persistence.rb
- M activerecord/lib/active_record/session_store.rb
- M activerecord/lib/active_record/transactions.rb
- M activerecord/lib/active_record/validations.rb
- M activerecord/lib/active_record/validations/uniqueness.rb
- M activerecord/test/cases/associations/belongs_to_associations_test.rb
- M activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
- M activerecord/test/cases/associations/has_many_associations_test.rb
- M activerecord/test/cases/associations/has_one_associations_test.rb
- M activerecord/test/cases/associations/join_model_test.rb
- M activerecord/test/cases/autosave_association_test.rb
- M activerecord/test/cases/base_test.rb
- M activerecord/test/cases/finder_test.rb
- M activerecord/test/cases/nested_attributes_test.rb
- M activerecord/test/cases/relations_test.rb
- M activerecord/test/cases/session_store/sql_bypass.rb
- M activerecord/test/cases/transactions_test.rb
- M activerecord/test/models/pirate.rb
- M activerecord/test/models/subject.rb
- M activerecord/test/models/topic.rb
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>