Sha256: b40ac5aea54d68ae060012d2d311ce08d09d11a7747f7982774fafa880536052

Contents?: true

Size: 324 Bytes

Versions: 20

Compression:

Stored size: 324 Bytes

Contents

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

20 entries across 20 versions & 1 rubygems

Version Path
phcmemberspro-16.0.1 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-16.0.0 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-15.1.1 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-15.1.0 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-15.0.3 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-15.0.2 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-15.0.1 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-15.0.0 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-14.7.7 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-14.7.5 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-14.7.4 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-14.7.3 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-14.7.2 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-14.7.1 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-14.7.0 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-14.6.3 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-14.6.2 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-14.6.1 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-14.6.0 app/helpers/phcmemberspro/application_helper.rb
phcmemberspro-14.5.0 app/helpers/phcmemberspro/application_helper.rb