Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix for display_name variable

  • Loading branch information...
commit 832fc911bef8325be4cf30d442f2184af9403614 1 parent 0db3072
Jim Gay saturnflyer authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  app/helpers/admin/page_node_alterations_helper.rb
3  app/helpers/admin/page_node_alterations_helper.rb
View
@@ -1,7 +1,8 @@
module Admin::PageNodeAlterationsHelper
def page_type
result = ''
- unless @current_node.class.display_name == 'Page'
+ display_name = @current_node.class.display_name
+ unless display_name == 'Page'
result = %{<span class="info">(#{ h(display_name) })</span>}
end
if flow_meter = @current_node.flow_meter
Please sign in to comment.
Something went wrong with that request. Please try again.