lib/rubocop/cop/rails/redundant_allow_nil.rb in rubocop-0.67.2 vs lib/rubocop/cop/rails/redundant_allow_nil.rb in rubocop-0.68.0
- old
+ new
@@ -77,13 +77,13 @@
allow_blank = nil
node.each_descendant do |descendant|
next unless descendant.pair_type?
- key = descendant.children.first.value
+ key = descendant.children.first.source
- allow_nil = descendant if key == :allow_nil
- allow_blank = descendant if key == :allow_blank
+ allow_nil = descendant if key == 'allow_nil'
+ allow_blank = descendant if key == 'allow_blank'
break if allow_nil && allow_blank
end
[allow_nil, allow_blank]