Sha256: b4ba427838be4dd60043951c22b65a78283b50e2e3c913604a49ad155d7af6dd

Contents?: true

Size: 323 Bytes

Versions: 10

Compression:

Stored size: 323 Bytes

Contents

module Phcmemberspro
  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

10 entries across 10 versions & 1 rubygems

Version Path
phcmemberspro-17.1.4 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-17.1.3 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-17.1.2 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-17.1.1 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-17.1.0 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-17.0.3 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-17.0.2 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-17.0.1 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-17.0.0 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-16.0.2 app/helpers/phcmemberspro/application_helper.rb