Class: MongoMapper::Plugins::Associations::OneEmbeddedProxy
- Defined in:
- lib/mm_partial_update/extensions.rb
Instance Method Summary collapse
Instance Method Details
#can_be_persistable? ⇒ Boolean
41 42 43 |
# File 'lib/mm_partial_update/extensions.rb', line 41 def can_be_persistable? true end |
#make_persistable ⇒ Object
48 49 50 51 |
# File 'lib/mm_partial_update/extensions.rb', line 48 def make_persistable class << self; include MmPartialUpdate::OneEmbeddedProxy; end unless persistable? @persistable = true end |
#persistable? ⇒ Boolean
44 45 46 |
# File 'lib/mm_partial_update/extensions.rb', line 44 def persistable? @persistable end |