Sha256: 404bb0b0bd952b1a2f8827b0431896379b7b48da60662be2a403a7084f1a659b

Contents?: true

Size: 301 Bytes

Versions: 62

Compression:

Stored size: 301 Bytes

Contents

module Phcscriptcdnpro
	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

62 entries across 62 versions & 1 rubygems

Version Path
phcscriptcdnpro-5.8.4 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.8.3 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.8.2 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.8.1 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.8.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.7.5 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.7.4 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.7.3 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.7.2 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.7.1 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.7.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.6.7 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.6.6 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.6.5 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.6.3 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.6.2 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.6.1 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.6.0 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.5.6 app/helpers/phcscriptcdnpro/application_helper.rb
phcscriptcdnpro-5.5.5 app/helpers/phcscriptcdnpro/application_helper.rb