module Shrine::Plugins::RemoveAttachment::AttachmentMethods

  1. lib/shrine/plugins/remove_attachment.rb

Methods

Public Class

  1. new

Public Class methods

new (*)
[show source]
# File lib/shrine/plugins/remove_attachment.rb, line 15
        def initialize(*)
          super

          module_eval "            def remove_#{@name}=(value)
              #{@name}_attacher.remove = value
            end

            def remove_#{@name}
              #{@name}_attacher.remove
            end
", __FILE__, __LINE__ + 1
        end