Skip to content

Commit

Permalink
Use x_node instead of inspecting sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozef Zigmund committed Nov 10, 2016
1 parent ecf50de commit 9c5224d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/helpers/application_helper/button/basic_image.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
class ApplicationHelper::Button::BasicImage < ApplicationHelper::Button::Basic
def visible?
@sb.fetch_path(:trees, :vandt_tree, :active_node).blank? ||
(@sb[:trees][:vandt_tree][:active_node] != "xx-arch" &&
@sb[:trees][:vandt_tree][:active_node] != "xx-orph")
active_node = @view_context.x_node
active_node.blank? || (active_node != "xx-arch" && active_node != "xx-orph")
end
end

0 comments on commit 9c5224d

Please sign in to comment.