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-19.1.0 app/helpers/phcmembers/application_helper.rb
phcmembers-19.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-18.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-17.1.0 app/helpers/phcmembers/application_helper.rb
phcmembers-17.0.1 app/helpers/phcmembers/application_helper.rb
phcmembers-16.2.0 app/helpers/phcmembers/application_helper.rb
phcmembers-16.1.0 app/helpers/phcmembers/application_helper.rb
phcmembers-16.0.2 app/helpers/phcmembers/application_helper.rb
phcmembers-16.0.1 app/helpers/phcmembers/application_helper.rb
phcmembers-16.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-15.1.0 app/helpers/phcmembers/application_helper.rb
phcmembers-15.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-14.0.1 app/helpers/phcmembers/application_helper.rb
phcmembers-14.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-13.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-12.5.0 app/helpers/phcmembers/application_helper.rb
phcmembers-12.4.0 app/helpers/phcmembers/application_helper.rb
phcmembers-12.2.1 app/helpers/phcmembers/application_helper.rb
phcmembers-11.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-10.0.0 app/helpers/phcmembers/application_helper.rb