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
29 def remove
30   @remove
31 end
remove=(value)

We remove the attachment if the value evaluates to true.

[show source]
   # File lib/shrine/plugins/remove_attachment.rb
23 def remove=(value)
24   @remove = value
25 
26   change(nil) if remove?
27 end