Module: Cms::Behaviors::Archiving::InstanceMethods
- Defined in:
- lib/cms/behaviors/archiving.rb
Instance Method Summary collapse
Instance Method Details
#archive ⇒ Object
20 21 22 23 24 |
# File 'lib/cms/behaviors/archiving.rb', line 20 def archive self.archived = true self.version_comment = "Archived" self.save end |
#archive! ⇒ Object
25 26 27 28 29 |
# File 'lib/cms/behaviors/archiving.rb', line 25 def archive! self.archived = true self.version_comment = "Archived" self.save! end |
#unarchive ⇒ Object
30 31 32 33 34 |
# File 'lib/cms/behaviors/archiving.rb', line 30 def unarchive self.archived = false self.version_comment = "Unarchived" self.save end |
#unarchive! ⇒ Object
35 36 37 38 39 |
# File 'lib/cms/behaviors/archiving.rb', line 35 def unarchive! self.archived = false self.version_comment = "Unarchived" self.save! end |