Module: MongoModel::RecordStatus
- Extended by:
- ActiveSupport::Concern
- Included in:
- EmbeddedDocument
- Defined in:
- lib/mongomodel/concerns/record_status.rb
Instance Method Summary collapse
Instance Method Details
#destroyed? ⇒ Boolean
15 16 17 |
# File 'lib/mongomodel/concerns/record_status.rb', line 15 def destroyed? @_destroyed end |
#initialize_with_record_status(*args, &block) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/mongomodel/concerns/record_status.rb', line 19 def initialize_with_record_status(*args, &block) set_new_record(true) set_destroyed(false) initialize_without_record_status(*args, &block) end |
#new_record? ⇒ Boolean
11 12 13 |
# File 'lib/mongomodel/concerns/record_status.rb', line 11 def new_record? @_new_record end |