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-9.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-9.0.0b app/helpers/phcmembers/application_helper.rb
phcmembers-6.7.1 app/helpers/phcmembers/application_helper.rb
phcmembers-6.7.0 app/helpers/phcmembers/application_helper.rb
phcmembers-6.5.1 app/helpers/phcmembers/application_helper.rb
phcmembers-6.5.0 app/helpers/phcmembers/application_helper.rb
phcmembers-6.4.1 app/helpers/phcmembers/application_helper.rb
phcmembers-6.4.0 app/helpers/phcmembers/application_helper.rb
phcmembers-6.3.5 app/helpers/phcmembers/application_helper.rb
phcmembers-6.3.4 app/helpers/phcmembers/application_helper.rb
phcmembers-6.3.3 app/helpers/phcmembers/application_helper.rb
phcmembers-6.3.2 app/helpers/phcmembers/application_helper.rb
phcmembers-6.3.1 app/helpers/phcmembers/application_helper.rb
phcmembers-6.3.0 app/helpers/phcmembers/application_helper.rb
phcmembers-6.2.0 app/helpers/phcmembers/application_helper.rb
phcmembers-6.1.6 app/helpers/phcmembers/application_helper.rb
phcmembers-6.1.5 app/helpers/phcmembers/application_helper.rb
phcmembers-6.1.4 app/helpers/phcmembers/application_helper.rb
phcmembers-6.1.3 app/helpers/phcmembers/application_helper.rb
phcmembers-6.1.2 app/helpers/phcmembers/application_helper.rb