Class: KPM::EngineController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- KPM::EngineController
show all
- Defined in:
- app/controllers/kpm/engine_controller.rb
Instance Method Summary
collapse
Instance Method Details
#current_tenant_user ⇒ Object
15
16
17
18
19
20
|
# File 'app/controllers/kpm/engine_controller.rb', line 15
def current_tenant_user
user = current_user if respond_to?(:current_user)
KPM.current_tenant_user.call(session, user)
end
|
#get_layout ⇒ Object
11
12
13
|
# File 'app/controllers/kpm/engine_controller.rb', line 11
def get_layout
layout ||= KPM.config[:layout]
end
|
#options_for_klient ⇒ Object
22
23
24
25
26
27
28
29
30
31
|
# File 'app/controllers/kpm/engine_controller.rb', line 22
def options_for_klient
user = current_tenant_user
{
:username => user[:username],
:password => user[:password],
:session_id => user[:session_id],
:api_key => user[:api_key],
:api_secret => user[:api_secret]
}
end
|