Sha256: 391c8bad110701a0e0c920185b82aa6cd4e53de7bb2edd670df463eb76c6a557

Contents?: true

Size: 321 Bytes

Versions: 1

Compression:

Stored size: 321 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
phcpress-9.0.1 app/helpers/phcpress/application_helper.rb