Sha256: 6ee1fdc63afc4becbaae1a88270dbef37aa0b979ce3e5cece934f65e7094d982

Contents?: true

Size: 640 Bytes

Versions: 1

Compression:

Stored size: 640 Bytes

Contents

module Phcmemberspro
	class ApplicationController < ActionController::Base

		# Load Helpers
		helper Mtdevise::Engine.helpers
		helper Phctitleseo::Engine.helpers
		helper Phcnotifi::Engine.helpers

		# Callup Current Account
		def current_account
			@current_account ||= env['Houser-Object']
		end
		helper_method :current_account
		
		# Define Scoped_to
		def scoped_to(account)
			where(:account_id => account.id)
		end

		def phcmemberspro_membersmain_layouts_resolver
			case action_name
			when "show"
				"layouts/phcmemberspro/members/members_profile"
			else
				"layouts/phcmemberspro/members/members_all"
			end
		end

	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phcmemberspro-5.2.7 app/controllers/phcmemberspro/application_controller.rb