Module: Versions::Attachment
- Defined in:
- lib/versions/attachment.rb
Overview
The attachement module provides shared file attachments to a class with a copy-on-write pattern. Basically the module provides ‘file=’ and ‘file’ methods. The file is shared between versions if it is not changed. The Attachment only stores a reference to the file which is saved in the filesystem.
Defined Under Namespace
Modules: ClassMethods, Owner
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
12 13 14 15 16 |
# File 'lib/versions/attachment.rb', line 12 def self.included(base) base.class_eval do extend ClassMethods end end |