File tree 2 files changed +2
-8
lines changed
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2025-04-04 23:03:43 UTC using RuboCop version 1.75.1.
3
+ # on 2025-04-04 23:05:51 UTC using RuboCop version 1.75.1.
4
4
# The point is for the user to remove these configuration records
5
5
# one by one as the offenses are removed from the code base.
6
6
# Note that changes in the inspected code, or installation of new
@@ -24,9 +24,3 @@ RSpec/ReceiveMessages:
24
24
Rails/ActiveSupportOnLoad :
25
25
Exclude :
26
26
- ' lib/paper_trail/frameworks/active_record.rb'
27
-
28
- # Offense count: 1
29
- # This cop supports unsafe autocorrection (--autocorrect-all).
30
- Style/ArrayIntersect :
31
- Exclude :
32
- - ' lib/paper_trail/events/base.rb'
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ def evaluate_only
157
157
# @api private
158
158
def ignored_attr_has_changed?
159
159
ignored = calculated_ignored_array + @record . paper_trail_options [ :skip ]
160
- ignored . any? && ( changed_in_latest_version & ignored ) . any?
160
+ ignored . any? && changed_in_latest_version . intersect? ( ignored )
161
161
end
162
162
163
163
# Rails 5.1 changed the API of `ActiveRecord::Dirty`. See
You can’t perform that action at this time.
0 commit comments