Update rubocop to version 1.76.0 (#34926)
This commit is contained in:
parent
1fdcaaebbb
commit
1297ad759e
10 changed files with 14 additions and 11 deletions
|
@ -22,7 +22,7 @@ module Attachmentable
|
|||
).freeze
|
||||
|
||||
included do
|
||||
def self.has_attached_file(name, options = {}) # rubocop:disable Naming/PredicateName
|
||||
def self.has_attached_file(name, options = {}) # rubocop:disable Naming/PredicatePrefix
|
||||
super
|
||||
|
||||
send(:"before_#{name}_validate", prepend: true) do
|
||||
|
|
|
@ -17,7 +17,7 @@ module UserSettings::Glue
|
|||
self.class.definition_for(key)&.type
|
||||
end
|
||||
|
||||
def has_attribute?(key) # rubocop:disable Naming/PredicateName
|
||||
def has_attribute?(key) # rubocop:disable Naming/PredicatePrefix
|
||||
self.class.definition_for?(key)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue