module Shrine::Plugins::RemoveAttachment::AttacherMethods

  1. lib/shrine/plugins/remove_attachment.rb

Methods

Public Instance

  1. remove
  2. remove=

Public Instance methods

remove ()
[show source]
# File lib/shrine/plugins/remove_attachment.rb, line 37
def remove
  @remove
end
remove= (value)

We remove the attachment if the value evaluates to true.

[show source]
# File lib/shrine/plugins/remove_attachment.rb, line 32
def remove=(value)
  @remove = value
  assign(nil) if remove?
end