Class: Helpdesk::ApplicationController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Helpdesk::ApplicationController
show all
- Defined in:
- app/controllers/helpdesk/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#default_url_options(options = {}) ⇒ Object
15
16
17
|
# File 'app/controllers/helpdesk/application_controller.rb', line 15
def default_url_options(options={})
{ :locale => I18n.locale}
end
|
#ensure_user ⇒ Object
9
10
11
12
13
|
# File 'app/controllers/helpdesk/application_controller.rb', line 9
def ensure_user
unless helpdesk_user
redirect_to main_app.send(Helpdesk.sign_in_url)
end
end
|