rails/activerecord/test/models
Neeraj Singh 2e45542942 While creating a new record using has_many create method default scope of child should be respected.
author.posts.create should take into account default_scope
defined on post.

[#3939: state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-08-19 14:52:15 -03: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 move assets and models 2008-01-18 07:27:03 +00:00
binary.rb move assets and models 2008-01-18 07:27:03 +00:00
bird.rb Rollback the transaction when one of the autosave associations fails to save. [#3391 state:resolved] 2010-01-08 21:45:02 +01:00
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 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
categorization.rb move assets and models 2008-01-18 07:27:03 +00:00
category.rb Fixed gruoped_by_title spelling [#5063 state:committed] 2010-07-08 00:26:25 +02:00
citation.rb move assets and models 2008-01-18 07:27:03 +00:00
club.rb Ensure methods called on association proxies respect access control. [#1083 state:resolved] [Adam Milligan, Pratik] 2008-10-13 19:02:34 +02:00
column_name.rb move assets and models 2008-01-18 07:27:03 +00:00
comment.rb Properly cache association_collection#scopes calls having arguments 2010-06-04 00:53:45 +01:00
company_in_module.rb Object#returning removed 2010-07-25 23:30:27 +02:00
company.rb Add :dependent = to has_one and has_many [#3075 state:resolved] 2010-03-28 18:47:46 +04:30
computer.rb move assets and models 2008-01-18 07:27:03 +00:00
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 has_many :through create should not raise validation errors 2009-08-09 18:44:45 -07:00
country.rb Ensure that primary_keys of HABTM records is not double quoted 2010-07-20 16:45:42 -07:00
course.rb move assets and models 2008-01-18 07:27:03 +00:00
customer.rb Added :constructor and :converter options to composed_of and deprecated the conversion block 2008-09-10 18:28:47 +02:00
dashboard.rb string IDs are now quoted correctly [#5064 state:resolved] 2010-07-13 08:14:52 +02:00
default.rb move assets and models 2008-01-18 07:27:03 +00:00
developer.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
edge.rb move assets and models 2008-01-18 07:27:03 +00:00
electron.rb Eager loading an association should not change the count of children 2010-08-02 17:12:59 +02:00
engine.rb reset_counter should work with non-traditional belongs_to and polymorphic belongs_to 2010-07-08 23:24:12 +02:00
entrant.rb move assets and models 2008-01-18 07:27:03 +00:00
essay.rb Add primary_key option to belongs_to association 2009-07-15 18:13:32 -07:00
event.rb Ensure validates_uniqueness_of considers limit on the field. [#1042 state:resolved] 2009-03-07 13:52:17 +00:00
face.rb Make polymorphic_inverse_of in Reflection throw an InverseOfAssociationNotFoundError if the supplied class doesn't have the appropriate association. [#3520 state:resolved] 2009-12-28 15:12:17 +01:00
guid.rb Fix validates_uniqueness_of for SQL keywords [#23 state:resolved] 2008-05-11 19:30:03 +01:00
interest.rb Add inverse polymorphic association support. [#3520 state:resolved] 2009-12-28 15:12:13 +01:00
invoice.rb Add failing test that triggers the stack overflow 2010-01-08 21:45:02 +01:00
item.rb move assets and models 2008-01-18 07:27:03 +00:00
job.rb Ensure table names are quoted by the association preloading code. 2008-04-26 12:14:50 +12:00
joke.rb move assets and models 2008-01-18 07:27:03 +00:00
keyboard.rb move assets and models 2008-01-18 07:27:03 +00:00
legacy_thing.rb move assets and models 2008-01-18 07:27:03 +00:00
line_item.rb Add failing test that triggers the stack overflow 2010-01-08 21:45:02 +01:00
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 Add inverse polymorphic association support. [#3520 state:resolved] 2009-12-28 15:12:13 +01:00
matey.rb move assets and models 2008-01-18 07:27:03 +00:00
member_detail.rb Fix preloading of has_one :through associations on belongs_to [#1507 state:resolved] 2008-12-18 19:19:36 +00:00
member_type.rb Fix preloading of has_one :through associations on belongs_to [#1507 state:resolved] 2008-12-18 19:19:36 +00:00
member.rb Fix preloading of has_one :through associations on belongs_to [#1507 state:resolved] 2008-12-18 19:19:36 +00:00
membership.rb Add has_one :through support, finally. Closes #4756 [thechrisoshow] 2008-03-21 18:09:03 +00:00
minimalistic.rb move assets and models 2008-01-18 07:27:03 +00:00
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 move assets and models 2008-01-18 07:27:03 +00:00
molecule.rb Eager loading an association should not change the count of children 2010-08-02 17:12:59 +02:00
movie.rb move assets and models 2008-01-18 07:27:03 +00:00
order.rb move assets and models 2008-01-18 07:27:03 +00:00
organization.rb Rename named_scope to scope 2010-01-18 04:38:19 +05:30
owner.rb Ensure has_many :through works with changed primary keys [#736 state:resolved] 2009-03-09 13:43:28 +00:00
parrot.rb Rollback the transaction when one of the autosave associations fails to save. [#3391 state:resolved] 2010-01-08 21:45:02 +01:00
person.rb Ensure default_scope can be overwriten by association conditions. 2010-07-21 15:06:23 +02:00
pet.rb Added :touch option to belongs_to associations that will touch the parent record when the current record is saved or destroyed [DHH] 2009-04-16 17:25:55 -05:00
pirate.rb Don't overwrite unsaved updates when loading an association but preserve the order of the loaded records. Reapplied from before but now allows already-saved records to be refreshed. 2010-06-20 00:32:06 +02:00
post.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
price_estimate.rb Fix has_many :through a polymorphic has_many. Closes #10529 [Aleksey Kondratenko] 2008-02-02 03:27:31 +00:00
project.rb Refactor new callbacks and AR implementation. 2009-09-08 10:26:39 -05:00
reader.rb move assets and models 2008-01-18 07:27:03 +00:00
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_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
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
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 Add has_one :through support, finally. Closes #4756 [thechrisoshow] 2008-03-21 18:09:03 +00:00
subject.rb added Subject#after_initialize to be the same as Topic#after_initialize 2009-08-06 23:41:00 +03:00
subscriber.rb Fixed AssociationsPreload such that it doesnt require foreign keys to be integers (fcheung) [#33 state:resolved] 2008-04-30 23:30:50 -05:00
subscription.rb Added missing files 2008-05-01 15:03:16 -05:00
tag.rb move assets and models 2008-01-18 07:27:03 +00:00
tagging.rb move assets and models 2008-01-18 07:27:03 +00:00
task.rb move assets and models 2008-01-18 07:27:03 +00:00
topic.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
toy.rb Ensure has_many :through works with changed primary keys [#736 state:resolved] 2009-03-09 13:43:28 +00:00
treasure.rb Raise an exception with friendlier error message when attempting to build a polymorphic belongs_to with accepts_nested_attributes_for. [#2318 state:resolved] 2009-09-12 15:37:54 +02:00
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 move assets and models 2008-01-18 07:27:03 +00:00
warehouse_thing.rb move assets and models 2008-01-18 07:27:03 +00:00
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 Providing support for :inverse_of as an option to associations. 2009-05-04 15:27:39 -07:00