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
Eugene Kenny d3599d8aff Use index_by and index_with wherever possible
Using `index_by` or `index_with` is more concise than `each_with_object`
and more performant than `map { ... }.to_h` or `Hash[map { ... }]`.
2020-03-05 01:24:14 +00:00
..
builder Support strict_loading on association declarations 2020-02-21 13:11:24 -05:00
join_dependency Add strict_loading mode to prevent lazy loading 2020-02-20 08:32:48 -05:00
preloader Add strict_loading mode to prevent lazy loading 2020-02-20 08:32:48 -05:00
alias_tracker.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
association.rb Support strict_loading on association declarations 2020-02-21 13:11:24 -05:00
association_scope.rb Reuse AR::Association#find_target method 2018-12-27 11:53:27 +02:00
belongs_to_association.rb Make has_many inversing opt-in 2019-10-11 15:55:46 -04: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 Support strict_loading on association declarations 2020-02-21 13:11:24 -05:00
collection_proxy.rb Fix ArgumentError: wrong number of arguments (given 3, expected 2) 2019-09-13 10:43:29 +09:00
foreign_association.rb Refs #28025 nullify *_type column on polymorphic associations on :nu… (#28078) 2019-01-15 23:03:20 +09:00
has_many_association.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
has_many_through_association.rb Merge pull request #35799 from leboshi/master 2019-03-31 09:11:25 +09:00
has_one_association.rb Refs #28025 nullify *_type column on polymorphic associations on :nu… (#28078) 2019-01-15 23:03:20 +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 Add strict_loading mode to prevent lazy loading 2020-02-20 08:32:48 -05:00
preloader.rb Use index_by and index_with wherever possible 2020-03-05 01:24:14 +00: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 Initialization block is a part of build_record 2018-06-04 23:28:55 +09:00