Sha256: b0bd94a188964e23b0d1f32a5bebb5186edb8eb0e03bb3f2038cf427511697c9

Contents?: true

Size: 314 Bytes

Versions: 11

Compression:

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

11 entries across 11 versions & 1 rubygems

Version Path
phcscriptcdn-5.1.2 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-5.1.1 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-5.1.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-5.0.1 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-5.0.0 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-4.3.10 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-4.3.9 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-4.3.8 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-4.3.7 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-4.3.6 app/helpers/phcscriptcdn/application_helper.rb
phcscriptcdn-4.3.5 app/helpers/phcscriptcdn/application_helper.rb