module Shrine::Plugins::RemoveAttachment::AttachmentMethods

  1. lib/shrine/plugins/remove_attachment.rb

Methods

Public Instance

  1. define_model_methods

Public Instance methods

define_model_methods(name)
[show source]
   # File lib/shrine/plugins/remove_attachment.rb
 8 def define_model_methods(name)
 9   super if defined?(super)
10 
11   define_method :"remove_#{name}=" do |value|
12     send(:"#{name}_attacher").remove = value
13   end
14 
15   define_method :"remove_#{name}" do
16     send(:"#{name}_attacher").remove
17   end
18 end