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



8
9
10
# File 'app/controllers/phcmemberspro/application_controller.rb', line 8

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

#scoped_to(account) ⇒ Object

Define Scoped_to



14
15
16
# File 'app/controllers/phcmemberspro/application_controller.rb', line 14

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