Class: RuboCop::Cop::Gusto::PaperclipOrAttachable

Inherits:
Base
  • Object
show all
Defined in:
lib/rubocop/cop/gusto/paperclip_or_attachable.rb

Constant Summary collapse

MSG =
"No more new paperclip or Attachable are allowed. New attachments should use ActiveStorage instead"
RESTRICT_ON_SEND =
%i(has_attached_file has_pdf_attachment has_attachment).freeze

Instance Method Summary collapse

Instance Method Details

#on_send(node) ⇒ Object



11
12
13
# File 'lib/rubocop/cop/gusto/paperclip_or_attachable.rb', line 11

def on_send(node)
  add_offense(node)
end