lib/rubocop/cop/rails/redundant_allow_nil.rb in rubocop-rails-2.15.2 vs lib/rubocop/cop/rails/redundant_allow_nil.rb in rubocop-rails-2.16.0
- old
+ new
@@ -28,14 +28,12 @@
#
class RedundantAllowNil < Base
include RangeHelp
extend AutoCorrector
- MSG_SAME =
- '`allow_nil` is redundant when `allow_blank` has the same value.'
+ MSG_SAME = '`allow_nil` is redundant when `allow_blank` has the same value.'
- MSG_ALLOW_NIL_FALSE =
- '`allow_nil: false` is redundant when `allow_blank` is true.'
+ MSG_ALLOW_NIL_FALSE = '`allow_nil: false` is redundant when `allow_blank` is true.'
RESTRICT_ON_SEND = %i[validates].freeze
def on_send(node)
allow_nil, allow_blank = find_allow_nil_and_allow_blank(node)