Class: Phcmemberspro::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/phcmemberspro/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#current_accountObject

Callup Current Account



5
6
7
# File 'app/controllers/phcmemberspro/application_controller.rb', line 5

def 
	@current_account ||= env['Houser-Object']
end

#scoped_to(account) ⇒ Object

Define Scoped_to



11
12
13
# File 'app/controllers/phcmemberspro/application_controller.rb', line 11

def scoped_to()
	where(:account_id => .id)
end