Skip to content

Commit 70288d7

Browse files
authored
Merge pull request #1231 from r7kamura/dangerous-object-id
Remove `object_id` from `Rails/DangerousColumnNames` targets
2 parents 8bcd6fa + 1a5d2de commit 70288d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* [#1231](https://github.com/rubocop/rubocop-rails/pull/1231): Remove `object_id` from `Rails/DangerousColumnNames` targets. ([@r7kamura][])

lib/rubocop/cop/rails/dangerous_column_names.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class DangerousColumnNames < Base # rubocop:disable Metrics/ClassLength
3131
time
3232
].to_set.freeze
3333

34-
# Generated from `ActiveRecord::AttributeMethods.dangerous_attribute_methods` on activerecord 7.1.0.
34+
# Generated from `ActiveRecord::AttributeMethods.dangerous_attribute_methods` on activerecord 7.1.3.
3535
# rubocop:disable Metrics/CollectionLiteralLength
3636
DANGEROUS_COLUMN_NAMES = %w[
3737
__callbacks
@@ -290,7 +290,6 @@ class DangerousColumnNames < Base # rubocop:disable Metrics/ClassLength
290290
new_record
291291
no_touching
292292
normalize_reflection_attribute
293-
object_id
294293
partial_inserts
295294
partial_updates
296295
perform_validations

0 commit comments

Comments
 (0)