Module: Shrine::Plugins::KeepFiles::AttacherMethods
- Defined in:
- lib/shrine/plugins/keep_files.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
20 21 22 |
# File 'lib/shrine/plugins/keep_files.rb', line 20 def destroy super unless shrine_class.opts[:keep_files].include?(:destroyed) end |
#replace ⇒ Object
16 17 18 |
# File 'lib/shrine/plugins/keep_files.rb', line 16 def replace super unless shrine_class.opts[:keep_files].include?(:replaced) end |