class RuboCop::Cop::Salsify::RailsUnscoped
Check that Activerecord scopes do not use ‘unscoped`
@example
# good User.strip_default_scope # bad User.unscoped
Constants
- MSG
Public Instance Methods
Source
# File lib/rubocop/cop/salsify/rails_unscoped.rb, line 22 def on_send(node) return unless unscoped?(node) add_offense(node, message: MSG) end