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-15.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-14.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-13.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-12.1.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-12.0.1 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-12.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-11.1.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-11.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-10.1.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-10.0.1 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-10.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-9.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-8.2.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-8.1.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-7.2.2 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-7.2.1 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-7.2.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-7.1.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-7.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-6.0.0 app/helpers/phcscriptcdn/application_helper.rb