Module: Shrine::Plugins::KeepFiles::AttacherMethods

Defined in:
lib/shrine/plugins/keep_files.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



20
21
22
# File 'lib/shrine/plugins/keep_files.rb', line 20

def destroy
  super unless shrine_class.opts[:keep_files].include?(:destroyed)
end

#replaceObject



16
17
18
# File 'lib/shrine/plugins/keep_files.rb', line 16

def replace
  super unless shrine_class.opts[:keep_files].include?(:replaced)
end