Module: Lycra::Document::Model::ClassMethods
- Defined in:
- lib/lycra/document/model.rb
Instance Method Summary collapse
Instance Method Details
#document(klass = nil) ⇒ Object
12 13 14 15 |
# File 'lib/lycra/document/model.rb', line 12 def document(klass=nil) @_lycra_document = klass if klass @_lycra_document || ("#{name}Document".constantize rescue nil) end |
#document=(klass) ⇒ Object
17 18 19 |
# File 'lib/lycra/document/model.rb', line 17 def document=(klass) document klass end |