Sha256: 8ea978221d9cf6e283879512bde5c5560f91e76dc5a59f580220b39d40bca50b

Contents?: true

Size: 363 Bytes

Versions: 1

Compression:

Stored size: 363 Bytes

Contents

module Phcmemberspro
	class ApplicationController < ActionController::Base

		# Load Helpers
		helper Phctitler::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

	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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