1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/models
David Chelimsky 1f06652a57 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>
2010-11-09 13:54:04 -02:00
..
admin Support fixtures for namespaced models [#2965 state:resolved] 2010-04-25 16:04:38 +02:00
admin.rb Support fixtures for namespaced models [#2965 state:resolved] 2010-04-25 16:04:38 +02:00
author.rb Ensure we can nest include calls [#5285 state:resolved] 2010-08-12 13:10:58 -03:00
auto_id.rb
binary.rb
bird.rb
book.rb test and fix collection_singular_ids= with string primary keys [#5125 state:resolved] 2010-08-02 16:41:20 +02:00
boolean.rb Add missing model 2010-08-14 18:49:04 -03:00
bulb.rb While creating a new record using has_many create method default scope of child should be respected. 2010-08-19 14:52:15 -03:00
car.rb expanding the test to include both type of order declaration 2010-09-18 20:49:19 +02:00
categorization.rb
category.rb Fixed gruoped_by_title spelling [#5063 state:committed] 2010-07-08 00:26:25 +02:00
citation.rb
club.rb
column_name.rb
comment.rb Add some tests for functionality in JoinAssociation which already exists but was previously untested 2010-10-13 08:24:19 -07:00
company.rb Convert :primary_key in association to a string before comparing to column names, so that for example :primary_key => :another_pk works as well [#5605 state:resolved] 2010-10-30 11:24:36 -07:00
company_in_module.rb Object#returning removed 2010-07-25 23:30:27 +02:00
computer.rb
contact.rb to_xml with :include should skip_instruct on the included records [#4506 state:resolved] 2010-04-30 14:22:57 +02:00
contract.rb
country.rb Ensure that primary_keys of HABTM records is not double quoted 2010-07-20 16:45:42 -07:00
course.rb
customer.rb
dashboard.rb string IDs are now quoted correctly [#5064 state:resolved] 2010-07-13 08:14:52 +02:00
default.rb
developer.rb reorder removed in favor of except(:order).order 2010-10-11 11:54:46 -02:00
edge.rb
electron.rb Eager loading an association should not change the count of children 2010-08-02 17:12:59 +02:00
engine.rb expanding the test to include both type of order declaration 2010-09-18 20:49:19 +02:00
entrant.rb
essay.rb
event.rb
eye.rb use persisted? instead of new_record? wherever possible 2010-11-09 13:54:04 -02:00
face.rb
guid.rb
interest.rb
invoice.rb
item.rb
job.rb
joke.rb
keyboard.rb
legacy_thing.rb
line_item.rb
liquid.rb Eager loading an association should not change the count of children 2010-08-02 17:12:59 +02:00
loose_person.rb mass_assignment_security moved from AR to AMo, and minor test cleanup 2010-07-08 18:28:45 +02:00
man.rb
matey.rb
member.rb
member_detail.rb
member_type.rb
membership.rb
minimalistic.rb
minivan.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
mixed_case_monkey.rb
molecule.rb Eager loading an association should not change the count of children 2010-08-02 17:12:59 +02:00
movie.rb
order.rb
organization.rb
owner.rb
parrot.rb
person.rb Ensure default_scope can be overwriten by association conditions. 2010-07-21 15:06:23 +02:00
pet.rb
pirate.rb use persisted? instead of new_record? wherever possible 2010-11-09 13:54:04 -02:00
post.rb Allow default_scope to accept a Proc. 2010-10-19 14:43:31 -07:00
price_estimate.rb
project.rb
reader.rb
reference.rb eagerly loaded association records should respect default_scope [#2931 state:resolved] 2010-07-21 15:01:40 +02:00
reply.rb Fix failing test. 2010-05-21 16:20:56 +02:00
ship.rb Nested records (re: autosave) are now updated even when the intermediate parent record is unchanged [#4242 state:resolved] 2010-05-18 16:13:00 +02:00
ship_part.rb Nested records (re: autosave) are now updated even when the intermediate parent record is unchanged [#4242 state:resolved] 2010-05-18 16:13:00 +02:00
shop.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
speedometer.rb string IDs are now quoted correctly [#5064 state:resolved] 2010-07-13 08:14:52 +02:00
sponsor.rb
subject.rb use persisted? instead of new_record? wherever possible 2010-11-09 13:54:04 -02:00
subscriber.rb
subscription.rb
tag.rb
tagging.rb
task.rb
topic.rb use persisted? instead of new_record? wherever possible 2010-11-09 13:54:04 -02:00
toy.rb
treasure.rb
treaty.rb Ensure that primary_keys of HABTM records is not double quoted 2010-07-20 16:45:42 -07:00
tyre.rb Ensure we can nest include calls [#5285 state:resolved] 2010-08-12 13:10:58 -03:00
vertex.rb
warehouse_thing.rb
wheel.rb reset_counter should work with non-traditional belongs_to and polymorphic belongs_to 2010-07-08 23:24:12 +02:00
without_table.rb Push a failing test for issues [#4994] and [#5003]. 2010-06-29 19:50:09 +02:00
zine.rb