Module: Friendly::Document::Storage
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Methods included from Mixin
Instance Method Details
#destroy ⇒ Object
54 55 56 |
# File 'lib/friendly/document/storage.rb', line 54 def destroy storage_proxy.destroy(self) end |
#save ⇒ Object
50 51 52 |
# File 'lib/friendly/document/storage.rb', line 50 def save new_record? ? storage_proxy.create(self) : storage_proxy.update(self) end |
#storage_proxy ⇒ Object
58 59 60 |
# File 'lib/friendly/document/storage.rb', line 58 def storage_proxy self.class.storage_proxy end |