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-51.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-50.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-49.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-46.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-45.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-44.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-43.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-42.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-41.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-40.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-39.2.0 app/helpers/phcmembers/application_helper.rb
phcmembers-39.1.0 app/helpers/phcmembers/application_helper.rb
phcmembers-39.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-38.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-37.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-36.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-35.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-34.0.1 app/helpers/phcmembers/application_helper.rb
phcmembers-33.1.0 app/helpers/phcmembers/application_helper.rb
phcmembers-33.0.0 app/helpers/phcmembers/application_helper.rb