Permalink
Browse files

fix for display_name variable

  • Loading branch information...
1 parent 0db3072 commit 832fc911bef8325be4cf30d442f2184af9403614 @saturnflyer saturnflyer committed Feb 5, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/helpers/admin/page_node_alterations_helper.rb
@@ -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

0 comments on commit 832fc91

Please sign in to comment.