Sha256: 5298aa6d33f2790af40e44a3f0584dfc31899847c0fb37cd0ad0d8559c909f69

Contents?: true

Size: 310 Bytes

Versions: 37

Compression:

Stored size: 310 Bytes

Contents

module Phcmemberspro
	class ApplicationController < ActionController::Base

		# 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

37 entries across 37 versions & 1 rubygems

Version Path
phcmemberspro-2.2.8 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-2.2.7 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-2.2.6 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-2.2.5 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-2.2.4 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-2.2.3 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-2.2.1 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-2.2.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-2.1.9 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-2.1.8 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-2.1.7 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-2.1.6 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-2.1.4 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-2.1.3 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-2.1.2 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-2.1.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-1.8.0 app/controllers/phcmemberspro/application_controller.rb