Module: CouchPotato::Attachments
- Defined in:
- lib/couch_potato/persistence/attachments.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/couch_potato/persistence/attachments.rb', line 3 def self.included(base) base.class_eval do attr_accessor :_attachments base.extend ClassMethods end end |
Instance Method Details
#to_hash ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/couch_potato/persistence/attachments.rb', line 10 def to_hash if super.merge('_attachments' => ) else super end end |