Method: Scrivito::Binary#copy
- Defined in:
- app/cms/scrivito/binary.rb
#copy(options = {}) ⇒ Scrivito::FutureBinary
Create a copy of this Binary with a different filename and/or content type.
91 92 93 94 |
# File 'app/cms/scrivito/binary.rb', line 91 def copy( = {}) self.class.() FutureBinary.new(.reverse_merge(filename: self.filename, id_to_copy: id)) end |