Sha256: 05c086b459135165b3fa99555db3af5956f5ef2e0b65316386863ff054d4697b

Contents?: true

Size: 297 Bytes

Versions: 12

Compression:

Stored size: 297 Bytes

Contents

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

12 entries across 12 versions & 1 rubygems

Version Path
phcpresspro-6.7.7 app/helpers/phcpresspro/application_helper.rb
phcpresspro-6.7.6 app/helpers/phcpresspro/application_helper.rb
phcpresspro-6.7.5 app/helpers/phcpresspro/application_helper.rb
phcpresspro-6.7.1 app/helpers/phcpresspro/application_helper.rb
phcpresspro-6.7.0 app/helpers/phcpresspro/application_helper.rb
phcpresspro-6.6.9 app/helpers/phcpresspro/application_helper.rb
phcpresspro-6.6.8 app/helpers/phcpresspro/application_helper.rb
phcpresspro-6.6.7 app/helpers/phcpresspro/application_helper.rb
phcpresspro-6.6.6 app/helpers/phcpresspro/application_helper.rb
phcpresspro-6.6.5 app/helpers/phcpresspro/application_helper.rb
phcpresspro-6.6.4 app/helpers/phcpresspro/application_helper.rb
phcpresspro-6.6.3 app/helpers/phcpresspro/application_helper.rb