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/associations
glaszig 5b2332ac71 allow passing false to :polymorphic option of belongs_to
before this, passing false would raise the following error
because a condition in AR would disregard the option entirely
if false was passed.

ArgumentError: Unknown key: :polymorphic. Valid keys are:
:class_name, :anonymous_class, :primary_key, :foreign_key,
:dependent, :validate, :inverse_of, :strict_loading, :autosave,
:required, :touch, :counter_cache, :optional, :default
2020-12-18 06:32:01 +01:00
..
builder allow passing false to :polymorphic option of belongs_to 2020-12-18 06:32:01 +01:00
join_dependency Merge pull request #39999 from kamipo/fix_eager_loading_with_explicit_non_select 2020-08-17 14:34:32 +09:00
preloader Refactor Preloader to remove AlreadyLoaded class 2020-12-14 11:37:47 -05:00
alias_tracker.rb Allow where references association names as joined table alias names 2020-08-26 10:07:13 +09:00
association.rb Fix strict loading on validations 2020-12-09 13:42:24 -05:00
association_scope.rb Don't use arel factory methods for creating join nodes 2020-08-07 03:57:34 +09:00
belongs_to_association.rb Every foreign_key column is supposed to be a public method 2020-10-02 21:53:56 +09:00
belongs_to_polymorphic_association.rb Add methods to the public API of ActiveRecord::Inheritance 2019-10-17 16:56:07 -04:00
collection_association.rb fix boolean negation in documentation 2020-10-21 22:13:39 +03:00
collection_proxy.rb doc fix: Just referencing an association does not indeed load the records 2020-11-26 01:54:10 +09:00
foreign_association.rb Move set_owner_attributes into ForeignAssociation 2020-06-21 08:12:55 +09:00
has_many_association.rb Every primary_key column is supposed to be a public method 2020-10-02 21:51:10 +09:00
has_many_through_association.rb Implicit scoping does no longer leak scope to class level querying methods 2020-10-30 00:25:38 +00:00
has_one_association.rb Every primary_key column is supposed to be a public method 2020-10-02 21:51:10 +09:00
has_one_through_association.rb Don't expose SingularAssociation#replace which is internal API 2018-05-16 06:43:52 +09:00
join_dependency.rb Don't use explicit references for join aliases 2020-12-04 15:19:20 +09:00
preloader.rb Refactor Preloader to remove AlreadyLoaded class 2020-12-14 11:37:47 -05:00
singular_association.rb Make the method signature of association.build the same as klass.build and relation.build 2019-10-20 02:51:59 +09:00
through_association.rb Fix through association with source/through scope which has joins 2020-05-22 04:05:27 +09:00