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-48.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-47.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-44.1.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-45.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-44.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-43.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-42.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-41.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-40.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-38.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-37.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-36.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-35.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-34.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-33.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-32.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-31.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-30.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-29.2.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-29.1.0 app/helpers/phcscriptcdn/application_helper.rb