Pattern: Use of allow_blank
as option to delegate
Issue: -
This rule looks for delegations that pass :allow_blank
as an option
instead of :allow_nil
. :allow_blank
is not a valid option to pass
to ActiveSupport#delegate
.
# bad
delegate :foo, to: :bar, allow_blank: true
# good
delegate :foo, to: :bar, allow_nil: true