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-3.5.5 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.5.2 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.5.1 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.5.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.3.3 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.3.2 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.3.1 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.3.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.2.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.1.1 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.1.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.0.9 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.0.8 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.0.6 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.0.5 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.0.4 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.0.3 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.0.2 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.0.1 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-3.0.0 app/controllers/phcmemberspro/application_controller.rb