RuboCop::Cop
This cop checks for the use of old-style attribute validation macros.
# File lib/rubocop/cop/rails/validation.rb, line 20 def on_send(node) receiver, method_name, *_args = *node return unless receiver.nil? && BLACKLIST.include?(method_name) add_offense(node, :selector) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.