module Shrine::Plugins::KeepFiles::AttacherMethods

  1. lib/shrine/plugins/keep_files.rb

Methods

Public Instance

  1. destroy
  2. replace

Public Instance methods

destroy ()
[show source]
# File lib/shrine/plugins/keep_files.rb, line 34
def destroy
  super unless shrine_class.opts[:keep_files].include?(:destroyed)
end
replace ()
[show source]
# File lib/shrine/plugins/keep_files.rb, line 30
def replace
  super unless shrine_class.opts[:keep_files].include?(:replaced)
end