mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
Rubocop syntax updates #2711
This commit is contained in:
parent
e46c1130db
commit
59c73fca9e
9 changed files with 33 additions and 11 deletions
|
@ -11,6 +11,7 @@ class ActionView::Helpers::FormBuilder
|
|||
content = content_or_options
|
||||
end
|
||||
|
||||
# rubocop:disable Style/MultilineOperationIndentation
|
||||
if object.class.respond_to?(:validators_on) &&
|
||||
object.class.validators_on(method).map(&:class).include?(ActiveRecord::Validations::PresenceValidator)
|
||||
|
||||
|
@ -20,6 +21,7 @@ class ActionView::Helpers::FormBuilder
|
|||
options[:class] = ((options[:class] || "") + ' required').split(' ').uniq.join(' ')
|
||||
end
|
||||
end
|
||||
# rubocop:enable Style/MultilineOperationIndentation
|
||||
|
||||
orig_label(method, content, options || {}, &block)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue