This cop enforces the consistent use of action filters methods.
The cop is configurable and the enforce the use of older something_filter methods or the newer something_action methods.
# File lib/rubocop/cop/rails/action_filter.rb, line 32 def autocorrect(node) @corrections << lambda do |corrector| corrector.replace(node.loc.selector, preferred_method(node.loc.selector.source).to_s) end end
Generated with the Darkfish Rdoc Generator 2.