Module: Lycra::Document::Model::InstanceMethods
- Defined in:
- lib/lycra/document/model.rb
Instance Method Summary collapse
Instance Method Details
#document(document_class = nil) ⇒ Object
30 31 32 33 |
# File 'lib/lycra/document/model.rb', line 30 def document(document_class=nil) return document_class.new(self) if document_class @document ||= self.class.document.new(self) end |
#reload ⇒ Object
25 26 27 28 |
# File 'lib/lycra/document/model.rb', line 25 def reload @document = nil super end |