Module: SimplyStored::SimpleDB::Associations
- Included in:
- SimplyStored::Simple
- Defined in:
- lib/simply_stored/simpledb/associations.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 |
# File 'lib/simply_stored/simpledb/associations.rb', line 4 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#clear_dependents_after_delete ⇒ Object
188 189 190 191 192 193 |
# File 'lib/simply_stored/simpledb/associations.rb', line 188 def clear_dependents_after_delete clear_methods = self.class.instance_variable_get("@_clear_dependents_after_delete_methods") || [] clear_methods.uniq.each do |clear_method| self.send(clear_method) end end |