Class: ApplicationController

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

Overview

This controller contain the methods shared for all controller

Instance Method Summary collapse

Instance Method Details

#default_url_optionsObject



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

def default_url_options
  { locale: I18n.locale }
end

#new_session_path(scope) ⇒ Object



18
19
20
# File 'app/controllers/application_controller.rb', line 18

def new_session_path(scope)
  new_user_session_path
end