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 Peter ee013a503d Fix bug where reset_counters resets the wrong counter cache.
If a model belongs_to two associations with the same class, then reset_counters
will reset the wrong counter cache.

Finding the right reflection should use the foreign_key instead, which should
be unique.
2012-01-16 19:06:45 -08:00
..
admin Test fixtures with custom model and table names 2011-12-30 10:34:01 +01:00
admin.rb
aircraft.rb
author.rb Deprecate inferred JOINs with includes + SQL snippets. 2012-01-16 21:32:12 +00:00
auto_id.rb
binary.rb
bird.rb Allow nested attributes in associations to update values in it's owner object. Fixes a regression from 3.0.x 2011-12-14 20:13:03 -06:00
book.rb
boolean.rb
bulb.rb
car.rb Test polymorphic record with optimistic locking and counter cache should be destoyed without catching the ActiveRecord::StaleObjectError. 2011-09-09 08:31:54 +01:00
categorization.rb
category.rb Revert "Deprecate implicit eager loading. Closes #950." 2012-01-16 21:17:17 +00:00
citation.rb
club.rb
column_name.rb
comment.rb
company.rb Deprecate inferred JOINs with includes + SQL snippets. 2012-01-16 21:32:12 +00:00
company_in_module.rb
computer.rb
contact.rb Raise error when using write_attribute with a non-existent attribute. 2011-09-13 00:01:58 +01:00
contract.rb
country.rb Deprecate set_primary_key in favour of self.primary_key= 2011-11-29 20:13:37 +00:00
course.rb
customer.rb
dashboard.rb Deprecate set_primary_key in favour of self.primary_key= 2011-11-29 20:13:37 +00:00
default.rb
developer.rb
dog.rb Fix bug where reset_counters resets the wrong counter cache. 2012-01-16 19:06:45 -08:00
dog_lover.rb Fix bug where reset_counters resets the wrong counter cache. 2012-01-16 19:06:45 -08:00
edge.rb
electron.rb
engine.rb
entrant.rb
essay.rb
event.rb
eye.rb
face.rb
guid.rb
interest.rb
invoice.rb
item.rb
job.rb
joke.rb Deprecate set_table_name in favour of self.table_name= or defining your own method. 2011-11-29 20:13:36 +00:00
keyboard.rb Deprecate set_primary_key in favour of self.primary_key= 2011-11-29 20:13:37 +00:00
legacy_thing.rb Deprecate set_locking_column in favour of self.locking_column= 2011-11-29 20:13:37 +00:00
lesson.rb
line_item.rb
liquid.rb Deprecate set_table_name in favour of self.table_name= or defining your own method. 2011-11-29 20:13:36 +00:00
man.rb
matey.rb
member.rb
member_detail.rb
member_type.rb
membership.rb
minimalistic.rb
minivan.rb Deprecate set_primary_key in favour of self.primary_key= 2011-11-29 20:13:37 +00:00
mixed_case_monkey.rb Deprecate set_primary_key in favour of self.primary_key= 2011-11-29 20:13:37 +00:00
molecule.rb
movie.rb
order.rb
organization.rb
owner.rb Deprecate set_primary_key in favour of self.primary_key= 2011-11-29 20:13:37 +00:00
parrot.rb Deprecate set_inheritance_column in favour of self.inheritance_column= 2011-11-29 20:13:36 +00:00
person.rb Deprecate inferred JOINs with includes + SQL snippets. 2012-01-16 21:32:12 +00:00
pet.rb Deprecate set_primary_key in favour of self.primary_key= 2011-11-29 20:13:37 +00:00
pirate.rb
post.rb Fix #3890. (Calling proxy_association in scope chain.) 2011-12-08 20:10:04 +00:00
price_estimate.rb
project.rb
randomly_named_c1.rb Test fixtures with custom model and table names 2011-12-30 10:34:01 +01:00
rating.rb
reader.rb
reference.rb
reply.rb
ship.rb
ship_part.rb
shop.rb
speedometer.rb Deprecate set_primary_key in favour of self.primary_key= 2011-11-29 20:13:37 +00:00
sponsor.rb
string_key_object.rb Deprecate set_primary_key in favour of self.primary_key= 2011-11-29 20:13:37 +00:00
student.rb
subject.rb
subscriber.rb Deprecate set_primary_key in favour of self.primary_key= 2011-11-29 20:13:37 +00:00
subscription.rb
tag.rb
tagging.rb
task.rb
teapot.rb Support establishing connection on ActiveRecord::Model. 2011-12-28 18:27:41 +00:00
topic.rb Fixed after_initialize callbacks call on AR model #dup 2012-01-07 11:11:04 +02:00
toy.rb Deprecate set_primary_key in favour of self.primary_key= 2011-11-29 20:13:37 +00:00
traffic_light.rb
treasure.rb
treaty.rb Deprecate set_primary_key in favour of self.primary_key= 2011-11-29 20:13:37 +00:00
tyre.rb
vertex.rb
warehouse_thing.rb Deprecate set_table_name in favour of self.table_name= or defining your own method. 2011-11-29 20:13:36 +00:00
wheel.rb
without_table.rb
zine.rb