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
Ryuta Kamizono ab3ad6a9ad becomes should clear the mutation tracker which is created in after_initialize
`becomes` creates new object and copies attributes from the receiver. If
new object has mutation tracker which is created in `after_initialize`,
it should be cleared since it is for discarded attributes.

But if the receiver doesn't have mutation tracker yet, it will not be
cleared properly.

It should be cleared regardless of whether the receiver has mutation
tracker or not.

Fixes #32867.
2018-05-11 19:57:22 +09:00
..
admin Add custom prefix to ActiveRecord::Store accessors 2018-03-23 08:01:46 +07:00
autoloadable
publisher
account.rb
admin.rb
aircraft.rb
arunit2_model.rb
author.rb get_value needs to be a public method 2018-04-25 06:29:03 -04:00
auto_id.rb
binary.rb
bird.rb
book.rb
boolean.rb
bulb.rb
cake_designer.rb
car.rb
carrier.rb
cat.rb
categorization.rb
category.rb
chef.rb
citation.rb
club.rb
college.rb
column.rb
column_name.rb
comment.rb Deprecate update_attributes and update_attributes! 2018-02-17 13:58:54 -08:00
company.rb Merge pull request #27561 from fishbrain/count-all-in-has-many-association 2018-01-03 05:44:11 +09:00
company_in_module.rb
computer.rb
contact.rb
content.rb
contract.rb Add test case for collection_singular_ids with symbol primary keys 2018-01-01 05:26:35 +09:00
country.rb
course.rb
customer.rb Remove unused/missing to_money converter in the test/doc 2018-01-29 16:45:29 +09:00
customer_carrier.rb
dashboard.rb
default.rb
department.rb
developer.rb
dog.rb
dog_lover.rb
doubloon.rb
drink_designer.rb
edge.rb
electron.rb
engine.rb
entrant.rb
essay.rb
event.rb
eye.rb
face.rb Make reflection.klass raise if polymorphic? not to be misused 2018-02-19 00:11:29 +09:00
family.rb
family_tree.rb
friendship.rb
frog.rb Merge pull request #30956 from CJStadler/with-lock-changed-deprecation 2018-03-28 13:11:01 -04:00
guid.rb
guitar.rb
hotel.rb
image.rb
interest.rb
invoice.rb
item.rb
job.rb
joke.rb
keyboard.rb
legacy_thing.rb
lesson.rb
line_item.rb
liquid.rb
man.rb Make reflection.klass raise if polymorphic? not to be misused 2018-02-19 00:11:29 +09:00
matey.rb
member.rb
member_detail.rb Using existing models for building multiple has_one through tests 2018-04-22 04:16:44 +09:00
member_type.rb
membership.rb
mentor.rb
minimalistic.rb
minivan.rb
mixed_case_monkey.rb
molecule.rb
movie.rb
node.rb
non_primary_key.rb
notification.rb
numeric_data.rb
order.rb
organization.rb
other_dog.rb
owner.rb
parrot.rb
person.rb
personal_legacy_thing.rb
pet.rb
pet_treasure.rb
pirate.rb
possession.rb
post.rb Avoid passing unnecessary arguments to relation 2018-01-24 16:49:35 -05:00
price_estimate.rb
professor.rb
project.rb
publisher.rb
randomly_named_c1.rb
rating.rb
reader.rb
recipe.rb
record.rb
reference.rb
reply.rb
ship.rb
ship_part.rb
shop.rb
shop_account.rb
speedometer.rb
sponsor.rb Make reflection.klass raise if polymorphic? not to be misused 2018-02-19 00:11:29 +09:00
string_key_object.rb
student.rb
subscriber.rb
subscription.rb
tag.rb Fix newly added reflection order when redefining association 2018-01-04 22:55:16 +09:00
tagging.rb Don't update counter cache when through record was not destroyed 2018-01-14 20:46:19 +00:00
task.rb
topic.rb becomes should clear the mutation tracker which is created in after_initialize 2018-05-11 19:57:22 +09:00
toy.rb
traffic_light.rb
treasure.rb
treaty.rb
tree.rb
tuning_peg.rb
tyre.rb
user.rb
uuid_child.rb
uuid_item.rb
uuid_parent.rb
vegetables.rb
vehicle.rb
vertex.rb
warehouse_thing.rb
wheel.rb Fix conflicts counter_cache with touch: true by optimistic locking. 2017-12-12 00:32:50 +02:00
without_table.rb
zine.rb