Module: Makura::Model
- Defined in:
- lib/makura/model.rb
Defined Under Namespace
Modules: InstanceMethods, SingletonMethods
Constant Summary collapse
- KEY =
'makura_type'
Class Attribute Summary collapse
-
.database ⇒ Object
Returns the value of attribute database.
-
.server ⇒ Object
Returns the value of attribute server.
Class Method Summary collapse
Class Attribute Details
.database ⇒ Object
Returns the value of attribute database.
6 7 8 |
# File 'lib/makura/model.rb', line 6 def database @database end |
.server ⇒ Object
Returns the value of attribute server.
6 7 8 |
# File 'lib/makura/model.rb', line 6 def server @server end |
Class Method Details
.included(into) ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/makura/model.rb', line 28 def included(into) into.extend(SingletonMethods) into.send(:include, InstanceMethods) into.makura_relation = {:belongs_to => {}, :has_many => {}} into.property_type = {} into.defaults = {'type' => into.name} into.properties(:_id, :_rev, :type) end |