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
Jimmy Bourassa 2ea5ff9e13
Use polymorphic_class_for over constantize
This commit fixes 2 cases where `constantize` was used instead of
of calling `polymorphic_class_for` to retrieve the class associated
with a given string for polymorphic `belongs_to`.
2021-09-06 17:16:43 -04:00
..
builder Use polymorphic_class_for over constantize 2021-09-06 17:16:43 -04:00
join_dependency Fix through association with through scope which has joins 2021-01-06 21:29:11 +09:00
preloader Standardize nodoc comments 2021-07-29 21:18:07 +00:00
alias_tracker.rb Allow where references association names as joined table alias names 2020-08-26 10:07:13 +09:00
association.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
association_scope.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
belongs_to_association.rb Use polymorphic_class_for over constantize 2021-09-06 17:16:43 -04:00
belongs_to_polymorphic_association.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
collection_association.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
collection_proxy.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
disable_joins_association_scope.rb Fix disable_joins when using an enum STI type 2021-06-24 14:30:00 -04:00
foreign_association.rb Move set_owner_attributes into ForeignAssociation 2020-06-21 08:12:55 +09:00
has_many_association.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
has_many_through_association.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
has_one_association.rb Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
has_one_through_association.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
join_dependency.rb Fix joins that reserved word association is referenced in where 2021-01-18 16:24:22 +09:00
preloader.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
singular_association.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
through_association.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00