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
Ryuta Kamizono c81af6ae72 Enable Layout/EmptyLinesAroundAccessModifier cop
We sometimes say "✂️ newline after `private`" in a code review (e.g.
https://github.com/rails/rails/pull/18546#discussion_r23188776,
https://github.com/rails/rails/pull/34832#discussion_r244847195).

Now `Layout/EmptyLinesAroundAccessModifier` cop have new enforced style
`EnforcedStyle: only_before` (https://github.com/rubocop-hq/rubocop/pull/7059).

That cop and enforced style will reduce the our code review cost.
2019-06-13 12:00:45 +09:00
..
builder Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
join_dependency Fix eager loading associations with string joins not to raise NoMethodError 2019-05-15 22:00:01 +09:00
preloader Fix preloading on AR::Relation where records are duplicated by a join 2019-06-06 15:14:40 +03:00
alias_tracker.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
association.rb Association loading isn't to be affected by scoping consistently 2019-04-05 13:21:50 +09:00
association_scope.rb Reuse AR::Association#find_target method 2018-12-27 11:53:27 +02:00
belongs_to_association.rb Refactor counter cache to extract decrement_counters_before_last_save on the belongs_to association 2018-09-27 22:59:12 +09:00
belongs_to_polymorphic_association.rb Don't update counter cache unless the record is actually saved 2018-09-19 05:29:21 +09:00
collection_association.rb Revert "Merge pull request #35127 from bogdan/counter-cache-loading" 2019-02-13 22:45:35 +09:00
collection_proxy.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +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 Fix merging left_joins to maintain its own join_type context 2019-04-27 21:43:57 +09:00
preloader.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
singular_association.rb Ensure StatementCache#execute never raises RangeError 2019-01-18 16:01:14 +09:00
through_association.rb Initialization block is a part of build_record 2018-06-04 23:28:55 +09:00