lib/eco/api/session.rb in eco-helpers-2.7.4 vs lib/eco/api/session.rb in eco-helpers-2.7.12

- old
+ new

@@ -56,22 +56,29 @@ # @param live [Boolean] states preference of `live` tree if available over file. # @param merge [Boolean] when in `live` mode, if mulitple trees, merge into one. # @see Eco::API::Session::Config#tagtree # @see Eco::API::Session#live_trees # @return [Eco::API::Organization::TagTree] - def tagtree(live: false, merge: false, include_archived: false, **kargs, &block) + def tagtree( + live: false, + merge: false, + include_archived: false, + recache: false, + **kargs, + &block + ) if live && api?(version: :graphql) return live_tree(include_archived: include_archived, **kargs, &block) unless merge live_trees(include_archived: include_archived, **kargs, &block).inject(&:merge) else - config.tagtree(enviro: enviro) + config.tagtree(recache: recache) end end # @see Eco::API::Session::Config#live_tree # @return [Eco::API::Organization::TagTree] def live_tree(id: nil, include_archived: false, **kargs, &block) - config.live_tree(id: id, include_archived: include_archived, enviro: enviro, **kargs, &block) + config.live_tree(id: id, include_archived: include_archived, **kargs, &block) end # @see Eco::API::Session::Config#live_tree def live_trees(include_archived: false, **kargs, &block) config.live_trees(include_archived: include_archived, **kargs, &block)