Commit 8d1b1c21930d85ac94da008d5201e43a7600e7f1
1 parent
2da36e2c
Exists in
master
and in
29 other branches
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 | 2 | |
3 | 3 | def body_classes |
4 | 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 | 7 | " template-#{@layout_template || if profile.blank? then 'default' else profile.layout_template end}" + |
8 | 8 | (!profile.nil? && profile.is_on_homepage?(request.path,@page) ? " profile-homepage" : "") |
9 | 9 | end | ... | ... |