Skip to content

Commit

Permalink
Merge pull request #1231 from r7kamura/dangerous-object-id
Browse files Browse the repository at this point in the history
Remove `object_id` from `Rails/DangerousColumnNames` targets
  • Loading branch information
koic committed Jan 21, 2024
2 parents 8bcd6fa + 1a5d2de commit 70288d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog/change_remove_object_id_from.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* [#1231](https://github.com/rubocop/rubocop-rails/pull/1231): Remove `object_id` from `Rails/DangerousColumnNames` targets. ([@r7kamura][])
3 changes: 1 addition & 2 deletions lib/rubocop/cop/rails/dangerous_column_names.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class DangerousColumnNames < Base # rubocop:disable Metrics/ClassLength
time
].to_set.freeze

# Generated from `ActiveRecord::AttributeMethods.dangerous_attribute_methods` on activerecord 7.1.0.
# Generated from `ActiveRecord::AttributeMethods.dangerous_attribute_methods` on activerecord 7.1.3.
# rubocop:disable Metrics/CollectionLiteralLength
DANGEROUS_COLUMN_NAMES = %w[
__callbacks
Expand Down Expand Up @@ -290,7 +290,6 @@ class DangerousColumnNames < Base # rubocop:disable Metrics/ClassLength
new_record
no_touching
normalize_reflection_attribute
object_id
partial_inserts
partial_updates
perform_validations
Expand Down

0 comments on commit 70288d7

Please sign in to comment.