Add current state to all nav elements
[rails.git] / app / helpers / application_helper.rb
index 4765cb35b3b6fe1fbd506bfc248d32454fc8e09a..f74d5cbf294722cf86243874331b0db8aa6fb823 100644 (file)
@@ -96,4 +96,8 @@ module ApplicationHelper
   def body_class
     [params[:controller], "#{params[:controller]}-#{params[:action]}", @extra_body_class].compact.join(" ")
   end
+
+  def current_page_class(path)
+    :current if current_page?(path)
+  end
 end