1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record
Ryuta Kamizono bc9beb27aa Fix where on polymorphic association with non Active Record object
It is a regression for #40815.

If `where` on polymorphic association with non Active Record object,
`associated_table.join_primary_key` is called without `klass` in
`AssociationQueryValue`, it is wrong usage for polymorphic association.

Always use `PolymorphicArrayValue` for polymorphic association to avoid
the issue.

Fixes #40937.
2020-12-28 07:02:46 +09:00
..
associations allow passing false to :polymorphic option of belongs_to 2020-12-18 06:32:01 +01:00
attribute_methods Fix doc formatting 2020-12-15 10:58:08 -05:00
coders
connection_adapters Merge pull request #40876 from fsateler/performance/type-map-initialize 2020-12-18 16:14:34 -05:00
database_configurations
fixture_set feat(rubocop): Add Style/RedundantRegexpEscape 2020-12-08 18:57:09 +00:00
locale
locking Use attribute_before_type_cast in the internal 2020-10-27 16:38:32 +09:00
middleware
migration Start Rails 6.2 development 🎉 2020-12-03 01:35:29 +00:00
railties Open transaction for multi-db apps 2020-12-09 17:12:32 +09:00
relation Fix where on polymorphic association with non Active Record object 2020-12-28 07:02:46 +09:00
scoping Allow reload to be default_scoped 2020-12-11 13:24:56 -05:00
tasks Add option to mute multiple database yaml warning 2020-10-29 16:57:57 -04:00
type Handle frozen payloads in AR::Type::Serialized 2020-10-20 09:32:21 +02:00
type_caster
validations MySQL: Uniqueness validator now respects default database collation 2020-10-30 00:25:46 +00:00
aggregations.rb Fix composed_of with symbol mapping 2020-12-15 20:06:23 +09:00
association_relation.rb Implicit scoping does no longer leak scope to class level querying methods 2020-10-30 00:25:38 +00:00
associations.rb Adds warning on usage of destroy_async. 2020-12-17 15:43:45 -07:00
attribute_assignment.rb
attribute_methods.rb Make sure that attribute_for_inspect respect filter_attributes 2020-12-02 23:01:34 +00:00
attributes.rb Unify decorate_attribute_type and attribute 2020-11-30 15:51:19 -06:00
autosave_association.rb Set inverse during has one autosave if necessary 2020-10-30 15:31:40 +00:00
base.rb
callbacks.rb Document metaprogrammed Active Record callbacks [ci-skip] 2020-11-06 21:22:07 -06:00
connection_adapters.rb Implement granular role and shard swapping 2020-10-28 15:11:35 -04:00
connection_handling.rb Merge pull request #40530 from eileencodes/remove-database-key-from-connected_to 2020-12-17 13:17:18 -05:00
core.rb Make sure that attribute_for_inspect respect filter_attributes 2020-12-02 23:01:34 +00:00
counter_cache.rb
database_configurations.rb Update database_configurations.rb output message 2020-11-04 18:00:09 -08:00
delegated_type.rb Allow delegated_type to be specified primary_key and foreign_key 2020-12-18 15:06:16 +09:00
destroy_association_async_job.rb
dynamic_matchers.rb
enum.rb Better handling of negative words in enum 2020-12-09 10:19:54 -06:00
errors.rb Remove deprecated support for using unsafe raw SQL in ActiveRecord::Relation methods 2020-10-30 00:25:32 +00:00
explain.rb
explain_registry.rb
explain_subscriber.rb
fixtures.rb Ignore strict loading violations on instances loaded through fixtures 2020-12-10 15:23:14 -06:00
gem_version.rb Start Rails 6.2 development 🎉 2020-12-03 01:35:29 +00:00
inheritance.rb
insert_all.rb Don't over protect the MySQL users on insert_all 2020-11-04 20:26:22 +00:00
integration.rb
internal_metadata.rb Eagerly define attribute methods for internal models 2020-11-06 23:46:16 +00:00
legacy_yaml_adapter.rb
log_subscriber.rb Allow applications to change the behavior for a strict loading violation 2020-11-02 13:01:50 -05:00
migration.rb Show outstanding migrations when the PendingMigration error is raised. This will give users feedback on which migration is outstanding. 2020-10-26 20:54:49 +00:00
model_schema.rb Fix documentation [ci skip] 2020-11-03 19:32:16 +00:00
nested_attributes.rb
no_touching.rb
null_relation.rb
persistence.rb Allow reload to be default_scoped 2020-12-11 13:24:56 -05:00
query_cache.rb Implement granular role and shard swapping 2020-10-28 15:11:35 -04:00
querying.rb Expose an invert_where method that will invert all scope conditions. 2020-12-18 16:00:20 -05:00
railtie.rb Merge pull request #40766 from rafaelfranca/rm-queue-defaults 2020-12-08 22:47:47 +00:00
readonly_attributes.rb
reflection.rb compute_class raise when klass is not ActiveRecord::Base subclass 2020-12-14 14:49:14 +01:00
relation.rb Refactor ActiveRecord::Associations::Preloader class 2020-12-11 08:52:53 -05:00
result.rb Remove deprecated ActiveRecord::Result#to_hash method 2020-10-30 00:25:33 +00:00
runtime_registry.rb
sanitization.rb Remove deprecated support for using unsafe raw SQL in ActiveRecord::Relation methods 2020-10-30 00:25:32 +00:00
schema.rb
schema_dumper.rb
schema_migration.rb Eagerly define attribute methods for internal models 2020-11-06 23:46:16 +00:00
scoping.rb
secure_token.rb
serialization.rb
signed_id.rb Docs: fix code formatting [ci skip] 2020-12-14 20:43:17 -05:00
statement_cache.rb
store.rb
suppressor.rb
table_metadata.rb Fix where with has_many through *belongs_to* association 2020-11-22 11:53:47 +09:00
test_databases.rb
test_fixtures.rb Share connection pools for non-default shards 2020-10-29 22:52:23 +00:00
timestamp.rb
touch_later.rb
transactions.rb
translation.rb
type.rb
type_caster.rb
validations.rb
version.rb