Module: ActsAsTrashable::ActiveRecord
- Defined in:
- app/models/concerns/acts_as_trashable.rb
Instance Method Summary collapse
Instance Method Details
#acts_as_trashable(*options) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/models/concerns/acts_as_trashable.rb', line 5 def acts_as_trashable(*) @acts_as_trashable_options = .try(:first) || {} unless @acts_as_trashable_options.kind_of?(Hash) raise ArgumentError.new("invalid arguments passed to (effective_trash) acts_as_trashable. Expecting no options.") end include ::ActsAsTrashable end |