Sha256: 688324c5f2db511f5390e6d4a8b5d30563b43fcc46ef3064403e96dbf1d17b95

Contents?: true

Size: 294 Bytes

Versions: 15

Compression:

Stored size: 294 Bytes

Contents

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

15 entries across 15 versions & 1 rubygems

Version Path
phcmembers-8.1.2 app/helpers/phcmembers/application_helper.rb
phcmembers-8.1.1 app/helpers/phcmembers/application_helper.rb
phcmembers-8.1.0 app/helpers/phcmembers/application_helper.rb
phcmembers-8.0.3 app/helpers/phcmembers/application_helper.rb
phcmembers-8.0.2 app/helpers/phcmembers/application_helper.rb
phcmembers-8.0.1 app/helpers/phcmembers/application_helper.rb
phcmembers-8.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-7.0.3 app/helpers/phcmembers/application_helper.rb
phcmembers-7.0.2 app/helpers/phcmembers/application_helper.rb
phcmembers-7.0.1 app/helpers/phcmembers/application_helper.rb
phcmembers-7.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-6.7.5 app/helpers/phcmembers/application_helper.rb
phcmembers-6.7.4 app/helpers/phcmembers/application_helper.rb
phcmembers-6.7.3 app/helpers/phcmembers/application_helper.rb
phcmembers-6.7.2 app/helpers/phcmembers/application_helper.rb