Class: Doodle::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Doodle::ApplicationController
show all
- Defined in:
- app/controllers/doodle/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#auth_params ⇒ Object
11
12
13
|
# File 'app/controllers/doodle/application_controller.rb', line 11
def auth_params
params.require(:auth).permit(:login, :pass)
end
|
#authenticate ⇒ Object
3
4
5
|
# File 'app/controllers/doodle/application_controller.rb', line 3
def authenticate
render json: { session_token: create_and_authenticate }
end
|
#authenticate_user ⇒ Object
7
8
9
|
# File 'app/controllers/doodle/application_controller.rb', line 7
def authenticate_user
end
|