Sha256: cfa9117f3a503760f00d807fe334844a3496c1e58dd89c499ec8792e74e52214
Contents?: true
Size: 315 Bytes
Versions: 61
Compression:
Stored size: 315 Bytes
Contents
module Phcscriptcdn module ApplicationHelper # 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
Version data entries
61 entries across 61 versions & 1 rubygems