Module: DestroyedAt::Mapper::Resource
- Defined in:
- lib/destroyed_at/routes.rb
Instance Method Summary collapse
Instance Method Details
#default_actions ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/destroyed_at/routes.rb', line 14 def default_actions actions = super if self.singular.camelcase.constantize.included_modules.include?(DestroyedAt) actions << :restore end actions end |