Module: Kamikakushi::Kaonashi::InstanceMethods
- Defined in:
- lib/kamikakushi/kaonashi.rb
Instance Method Summary collapse
Instance Method Details
#destroyed_with_kaonashi? ⇒ Boolean
44 45 46 47 |
# File 'lib/kamikakushi/kaonashi.rb', line 44 def destroyed_with_kaonashi? association = self.class.reflect_on_all_associations.find { |a| a.name == self.class.dependent_parent_name } association.klass.with_deleted.find(__send__(association.foreign_key)).destroyed? end |