Sha256: f27129275e04b9eaa614d08c918bc2c5261db8f5f0bb15213cf90f175d6e9791

Contents?: true

Size: 297 Bytes

Versions: 10

Compression:

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

10 entries across 10 versions & 1 rubygems

Version Path
phcmembers-61.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-60.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-59.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-57.1.0 app/helpers/phcmembers/application_helper.rb
phcmembers-57.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-56.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-55.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-54.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-53.0.0 app/helpers/phcmembers/application_helper.rb
phcmembers-52.0.0 app/helpers/phcmembers/application_helper.rb