app/helpers/phcscriptcdn/application_helper.rb in phcscriptcdn-4.3.4 vs app/helpers/phcscriptcdn/application_helper.rb in phcscriptcdn-4.3.5

- old
+ new

@@ -1,5 +1,14 @@ module Phcscriptcdn - module ApplicationHelper + module ApplicationHelper - end -end + # Add Active to Menu + def is_active_controller(controller_name) + params[:controller] == controller_name ? "active open selected" : nil + end + + def is_active_action(action_name) + params[:action] == action_name ? "active" : nil + end + + end +end \ No newline at end of file