Sha256: 03138c97b14ad82c697dc79c7c13b8695a2ac98b0fb91c6b1eb7df0862cd0366

Contents?: true

Size: 313 Bytes

Versions: 10

Compression:

Stored size: 313 Bytes

Contents

module Phcpresspro
  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

10 entries across 10 versions & 1 rubygems

Version Path
phcpresspro-10.0.0 app/helpers/phcpresspro/application_helper.rb
phcpresspro-9.1.3 app/helpers/phcpresspro/application_helper.rb
phcpresspro-9.1.2 app/helpers/phcpresspro/application_helper.rb
phcpresspro-9.1.1 app/helpers/phcpresspro/application_helper.rb
phcpresspro-9.1.0 app/helpers/phcpresspro/application_helper.rb
phcpresspro-9.0.0 app/helpers/phcpresspro/application_helper.rb
phcpresspro-8.0.6 app/helpers/phcpresspro/application_helper.rb
phcpresspro-8.0.5 app/helpers/phcpresspro/application_helper.rb
phcpresspro-8.0.4 app/helpers/phcpresspro/application_helper.rb
phcpresspro-8.0.3 app/helpers/phcpresspro/application_helper.rb