Class: Brightcontent::ApplicationController

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

Direct Known Subclasses

BaseController, SessionsController

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

#indexObject



9
10
11
# File 'app/controllers/brightcontent/application_controller.rb', line 9

def index
  redirect_to polymorphic_url(user_resources.first.klass)
end