Method: Pageflow::FileReuse#initialize
- Defined in:
- app/models/pageflow/file_reuse.rb
#initialize(destination_entry, source_entry, file_type, file_id) ⇒ FileReuse
Returns a new instance of FileReuse.
5 6 7 8 9 10 |
# File 'app/models/pageflow/file_reuse.rb', line 5 def initialize(destination_entry, source_entry, file_type, file_id) @source_entry = source_entry @destination_entry = destination_entry @file_type = file_type @file = source_entry.find_file(file_type.model, file_id) end |