Module: MongoMapper::Plugins::Safe::ClassMethods
- Defined in:
- lib/mongo_mapper/plugins/safe.rb
Instance Method Summary collapse
Instance Method Details
#inherited(subclass) ⇒ Object
8 9 10 11 |
# File 'lib/mongo_mapper/plugins/safe.rb', line 8 def inherited(subclass) super subclass.safe if safe? end |
#safe ⇒ Object
13 14 15 |
# File 'lib/mongo_mapper/plugins/safe.rb', line 13 def safe @safe = true end |
#safe? ⇒ Boolean
17 18 19 |
# File 'lib/mongo_mapper/plugins/safe.rb', line 17 def safe? @safe == true end |