Sha256: 780ed00ac57fe5adb436f368c641de084db1e8033d6f1d55c708c126d8650906

Contents?: true

Size: 317 Bytes

Versions: 9

Compression:

Stored size: 317 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

9 entries across 9 versions & 1 rubygems

Version Path
phcscriptcdnpro-8.0.2 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-8.0.1 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-8.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-7.1.3 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-7.1.2 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-7.1.1 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-7.1.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-7.0.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-6.0.3 app/helpers/phcscriptcdnpro/application_helper.rb