diff --git a/app/cells/locomotive/sub_menu_cell.rb b/app/cells/locomotive/sub_menu_cell.rb index 56e2cacd..2bdb9335 100644 --- a/app/cells/locomotive/sub_menu_cell.rb +++ b/app/cells/locomotive/sub_menu_cell.rb @@ -5,7 +5,7 @@ module Locomotive def build_item(name, attributes) item = super - enhanced_class = "#{'on' if name.to_s == sections(:sub)} #{item[:class]}" + enhanced_class = "#{'on' if name.to_s == sections(:sub).to_s} #{item[:class]}" item.merge(:class => enhanced_class) end diff --git a/app/views/locomotive/shared/_head.html.haml b/app/views/locomotive/shared/_head.html.haml index a4253462..fe9ea09c 100644 --- a/app/views/locomotive/shared/_head.html.haml +++ b/app/views/locomotive/shared/_head.html.haml @@ -29,4 +29,6 @@ }); -= yield :head \ No newline at end of file += yield :head + += render 'locomotive/shared/main_app_head' \ No newline at end of file diff --git a/app/views/locomotive/shared/_main_app_head.html.haml b/app/views/locomotive/shared/_main_app_head.html.haml new file mode 100644 index 00000000..d12a3bbf --- /dev/null +++ b/app/views/locomotive/shared/_main_app_head.html.haml @@ -0,0 +1 @@ +- # this partial can be overridden in the main app in order to include extra css or js