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
Sean Griffin ff4986b917 Ensure hashes can be passed to attributes using composed_of
This behavior was broken by 36e9be85. When the value is assigned
directly, either through mass assignment or directly assigning a hash,
the hash gets passed through to this writer method directly. While this
is intended to handle certain cases, when an explicit converter has been
provided, we should continue to use that instead. The positioning of the
added guard caused the new behavior to override that case.

Fixes #25210
2016-05-31 10:03:26 -04:00
..
admin Add line endings to files which are missing them 2015-02-17 13:28:06 -07:00
autoloadable
publisher
admin.rb Add line endings to files which are missing them 2015-02-17 13:28:06 -07:00
aircraft.rb Fix counter_cache for polymorphic associations 2015-07-19 15:52:29 -06:00
arunit2_model.rb
author.rb don't treat all associations with extensions as instance dependent. 2016-03-03 16:52:35 +01:00
auto_id.rb
binary.rb Add line endings to files which are missing them 2015-02-17 13:28:06 -07:00
bird.rb Deprecate false as the way to halt AR callbacks 2015-01-02 15:31:56 -08:00
book.rb Use the database type to deserialize enum 2016-01-23 08:44:16 -07:00
boolean.rb
bulb.rb Bugfix collection association #create method … 2015-11-23 16:22:03 +02:00
cake_designer.rb
car.rb Fixed where for polymorphic associations when passed an array containing different types. 2016-02-16 10:41:26 -08:00
carrier.rb Skip statement cache on through association reader 2015-08-12 21:17:30 -03:00
cat.rb Fix warning: method redefined; discarding old female 2016-03-12 17:06:43 +09:00
categorization.rb Require explicit counter_cache option for has_many 2015-04-07 17:50:41 +10:00
category.rb
chef.rb Add missing source_type if provided on hmt which belongs to an sti record 2016-01-24 22:25:12 +05:30
citation.rb
club.rb
college.rb
column.rb
column_name.rb
comment.rb Allow joins to be unscoped 2016-01-31 02:30:09 +09:00
company.rb Revert "Merge pull request #21994 from mtodd/inherit-scopes" 2015-10-27 01:12:03 -02:00
company_in_module.rb Deprecate ActiveModel::Errors add_on_empty and add_on_blank methods 2015-02-19 14:10:38 +01:00
computer.rb
contact.rb introduce conn.data_source_exists? and conn.data_sources. 2015-09-22 19:48:44 +02:00
content.rb Add support for bidirectional destroy dependencies 2015-01-16 11:41:43 +00:00
contract.rb
country.rb
course.rb
customer.rb Ensure hashes can be passed to attributes using composed_of 2016-05-31 10:03:26 -04:00
customer_carrier.rb Skip statement cache on through association reader 2015-08-12 21:17:30 -03:00
dashboard.rb
default.rb
department.rb
developer.rb Fix merge conflicts for #19938 2015-10-20 16:57:47 -06:00
dog.rb
dog_lover.rb
doubloon.rb Fix crash when loading fixture with belongs_to association defined in abstract base class. 2015-06-04 12:38:00 -04:00
drink_designer.rb
edge.rb
electron.rb Revert "Merge pull request #20080 from robertjlooby/fix_overwriting_by_dynamic_finders" 2015-09-09 06:08:57 -03:00
engine.rb
entrant.rb
essay.rb
event.rb Add line endings to files which are missing them 2015-02-17 13:28:06 -07:00
eye.rb
face.rb Typo fix [ci skip] 2015-09-07 21:29:00 +05:30
friendship.rb
guid.rb Add line endings to files which are missing them 2015-02-17 13:28:06 -07:00
guitar.rb Errors can be indexed with nested attributes 2015-04-17 14:11:16 -04:00
hotel.rb Add missing source_type if provided on hmt which belongs to an sti record 2016-01-24 22:25:12 +05:30
image.rb Add foreign_type option for polymorphic has_one and has_many. 2014-12-08 18:13:15 -02:00
interest.rb
invoice.rb
item.rb
job.rb
joke.rb
keyboard.rb
legacy_thing.rb
lesson.rb
line_item.rb
liquid.rb
man.rb
matey.rb
member.rb Skip statement cache on through association reader 2015-08-12 21:17:30 -03:00
member_detail.rb Fix misleading errors for has_one through relations 2015-07-22 00:51:23 +03:00
member_type.rb
membership.rb Skip statement cache on through association reader 2015-08-12 21:17:30 -03:00
mentor.rb Fix for activerecord join dependency instantiate bug 2015-05-04 18:06:06 +03:00
minimalistic.rb
minivan.rb
mixed_case_monkey.rb
mocktail_designer.rb Add missing source_type if provided on hmt which belongs to an sti record 2016-01-24 22:25:12 +05:30
molecule.rb
movie.rb
node.rb Add pending test for the great-grandparent touching bug from #19324 2015-06-25 14:23:06 +02:00
notification.rb Ensure suppressor runs before validations 2016-02-24 14:33:22 -05:00
order.rb
organization.rb
owner.rb Fix undefined method `owners' for NullPreloader:Class 2016-04-06 00:46:55 -03:00
parrot.rb Remove unused scopes 2015-10-01 23:42:45 -05:00
person.rb Remove unused scopes 2015-10-01 23:42:45 -05:00
personal_legacy_thing.rb
pet.rb Fix undefined method `owners' for NullPreloader:Class 2016-04-06 00:46:55 -03:00
pet_treasure.rb Fix undefined method `owners' for NullPreloader:Class 2016-04-06 00:46:55 -03:00
pirate.rb Add line endings to files which are missing them 2015-02-17 13:28:06 -07:00
possession.rb
post.rb Skip the STI condition when evaluating a default scope 2016-01-12 05:43:58 +10:30
price_estimate.rb
professor.rb use correct DB connection for generated HABTM table 2015-08-07 12:33:09 -07:00
project.rb Ensure has_and_belongs_to_many works with belongs_to_required_by_default 2015-10-29 16:53:49 -06:00
publisher.rb
randomly_named_c1.rb Fixes #18492 2015-01-14 21:36:58 +05:30
rating.rb
reader.rb
recipe.rb Fix leaky chain on polymorphic association 2015-03-15 10:39:42 -04:00
record.rb
reference.rb
reply.rb
ship.rb Only nullify persisted has_one target associations 2015-08-24 11:49:43 +03:00
ship_part.rb Always perform validations on nested attribute associations 2015-01-30 07:27:20 -07:00
shop.rb
shop_account.rb Skip statement cache on through association reader 2015-08-12 21:17:30 -03:00
speedometer.rb
sponsor.rb
string_key_object.rb
student.rb
subject.rb
subscriber.rb
subscription.rb
tag.rb Honour the order of the joining model in a has_many :through 2015-03-02 17:18:35 -05:00
tagging.rb
task.rb
topic.rb Deprecate passing conditions to AR::Relation destroy_all and delete_all methods 2015-09-06 16:14:16 +02:00
toy.rb
traffic_light.rb
treasure.rb Add tests for associations without counter_cache 2015-04-09 14:53:34 +10:00
treaty.rb
tree.rb Add pending test for the great-grandparent touching bug from #19324 2015-06-25 14:23:06 +02:00
tuning_peg.rb Errors can be indexed with nested attributes 2015-04-17 14:11:16 -04:00
tyre.rb Don't perform statement caching for find when called from a scope 2014-12-22 15:38:58 -07:00
user.rb Revert "Merge pull request #20835 from glittershark/if-and-unless-in-secure-token" 2016-01-14 21:52:03 +01:00
uuid_child.rb
uuid_item.rb Fix issue #23625 2016-02-18 00:32:38 -05:00
uuid_parent.rb
vegetables.rb
vehicle.rb Prevent duplicating where clauses when model is extended from an abstract class 2015-04-15 23:02:32 +03:00
vertex.rb
warehouse_thing.rb
wheel.rb
without_table.rb
zine.rb