Class: HideAncestry::ModelManage::Restore

Inherits:
Base
  • Object
show all
Defined in:
lib/hide_ancestry/model_manage/restore.rb

Instance Attribute Summary

Attributes inherited from Base

#instance

Instance Method Summary collapse

Methods inherited from Base

call, #initialize

Constructor Details

This class inherits a constructor from HideAncestry::ModelManage::Base

Instance Method Details

#callObject



4
5
6
7
8
9
# File 'lib/hide_ancestry/model_manage/restore.rb', line 4

def call
  instance.reload
  restore_parent
  restore_children
  change_hidden_status(false)
end