lib/rubocop/cop/rails/delegate_allow_blank.rb in rubocop-rails-2.18.0 vs lib/rubocop/cop/rails/delegate_allow_blank.rb in rubocop-rails-2.19.0
- old
+ new
@@ -25,10 +25,10 @@
def on_send(node)
return unless (offending_node = allow_blank_option(node))
add_offense(offending_node) do |corrector|
- corrector.replace(offending_node.key.source_range, 'allow_nil')
+ corrector.replace(offending_node.key, 'allow_nil')
end
end
end
end
end