Sha256: dfb76f061fb78d8b9cd8f33f36b9a5ded60f1db91cba68f0131ee2e59c1ec4fa

Contents?: true

Size: 318 Bytes

Versions: 128

Compression:

Stored size: 318 Bytes

Contents

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

128 entries across 128 versions & 1 rubygems

Version Path
phcscriptcdnpro-72.2.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-72.1.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-72.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-71.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-70.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-68.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-67.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-66.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-65.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-64.1.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-64.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-63.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-62.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-61.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-60.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-59.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-58.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-57.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-56.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-55.0.0 app/helpers/phcscriptcdnpro/application_helper.rb