Module: Landable::Librarian
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/landable/librarian.rb
Overview
modules
Instance Method Summary collapse
-
#deactivate ⇒ Object
standard methods.
-
#nuke! ⇒ Object
custom methods.
- #reactivate ⇒ Object
Instance Method Details
#deactivate ⇒ Object
standard methods
18 19 20 |
# File 'app/models/concerns/landable/librarian.rb', line 18 def deactivate update_attribute(:deleted_at, Time.now) end |
#nuke! ⇒ Object
custom methods
23 24 25 |
# File 'app/models/concerns/landable/librarian.rb', line 23 def nuke! destroy end |
#reactivate ⇒ Object
27 28 29 |
# File 'app/models/concerns/landable/librarian.rb', line 27 def reactivate update_attribute(:deleted_at, nil) end |