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

Version Path
phcscriptcdn-29.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-28.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-27.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-26.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-25.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-24.0.1 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-24.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-23.1.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-23.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-22.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-21.2.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-21.1.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-21.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-20.0.1 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-20.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-19.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-18.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-17.0.1 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-17.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-16.0.0 app/helpers/phcscriptcdn/application_helper.rb