Module: Eco::API::UseCases::GraphQL::Helpers::Location::Command::Diffs::Stages::DiffSortable::ForUnarchive
- Defined in:
- lib/eco/api/usecases/graphql/helpers/location/command/diffs/stages/diff_sortable/for_unarchive.rb
Instance Method Summary collapse
-
#original_tree ⇒ Object
we require the original tree to be able to track what ancestors should be unarchived, with the aim of unarchiving a node that is target of update (i.e. revive and move somewhere else).
- #original_tree_node(id) ⇒ Object
Instance Method Details
#original_tree ⇒ Object
we require the original tree to be able to track what ancestors should be unarchived, with the aim of unarchiving a node that is target of update (i.e. revive and move somewhere else)
8 9 10 |
# File 'lib/eco/api/usecases/graphql/helpers/location/command/diffs/stages/diff_sortable/for_unarchive.rb', line 8 def original_tree defined?(super)? super : @original_tree end |
#original_tree_node(id) ⇒ Object
12 13 14 |
# File 'lib/eco/api/usecases/graphql/helpers/location/command/diffs/stages/diff_sortable/for_unarchive.rb', line 12 def original_tree_node(id) original_tree.node(id) end |