Commit 8d1b1c21930d85ac94da008d5201e43a7600e7f1

Authored by Rodrigo Souto
1 parent 2da36e2c

Using controller instead of @controller on layout helper

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/helpers/layout_helper.rb
@@ -2,8 +2,8 @@ module LayoutHelper @@ -2,8 +2,8 @@ module LayoutHelper
2 2
3 def body_classes 3 def body_classes
4 # Identify the current controller and action for the CSS: 4 # Identify the current controller and action for the CSS:
5 - " controller-#{@controller.controller_name}" +  
6 - " action-#{@controller.controller_name}-#{@controller.action_name}" + 5 + " controller-#{controller.controller_name}" +
  6 + " action-#{controller.controller_name}-#{controller.action_name}" +
7 " template-#{@layout_template || if profile.blank? then 'default' else profile.layout_template end}" + 7 " template-#{@layout_template || if profile.blank? then 'default' else profile.layout_template end}" +
8 (!profile.nil? && profile.is_on_homepage?(request.path,@page) ? " profile-homepage" : "") 8 (!profile.nil? && profile.is_on_homepage?(request.path,@page) ? " profile-homepage" : "")
9 end 9 end