Sha256: d94ecbf0f1badca95941edb0e8426d5d9aa7806767dd627456797285d1cbee0b

Contents?: true

Size: 295 Bytes

Versions: 84

Compression:

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

84 entries across 84 versions & 1 rubygems

Version Path
phcmembers-32.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-31.2.0 app/helpers/phcmembers/application_helper.rb
phcmembers-31.1.0 app/helpers/phcmembers/application_helper.rb
phcmembers-31.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-30.0.2 app/helpers/phcmembers/application_helper.rb
phcmembers-30.0.1 app/helpers/phcmembers/application_helper.rb
phcmembers-30.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-29.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-28.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-27.0.1 app/helpers/phcmembers/application_helper.rb
phcmembers-27.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-26.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-25.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-24.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-23.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-22.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-21.1.0 app/helpers/phcmembers/application_helper.rb
phcmembers-21.0.1 app/helpers/phcmembers/application_helper.rb
phcmembers-21.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-19.2.0 app/helpers/phcmembers/application_helper.rb