Class: Brightcontent::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Brightcontent::ApplicationController
show all
- Defined in:
- app/controllers/brightcontent/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#default_url_options(options = {}) ⇒ Object
13
14
15
|
# File 'app/controllers/brightcontent/application_controller.rb', line 13
def default_url_options(options = {})
{ locale: I18n.locale }.merge options
end
|
#index ⇒ Object
9
10
11
|
# File 'app/controllers/brightcontent/application_controller.rb', line 9
def index
redirect_to polymorphic_url(user_resources.first.klass)
end
|