Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.

Commit 60476a1

Browse files
committed
[-] Code style - Rename a controller method
1 parent 89f51e6 commit 60476a1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/controllers/forest_liana/sessions_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module ForestLiana
22
class SessionsController < ForestLiana::BaseController
3-
def create
3+
def create_with_password
44
@error_message = nil
55
@user_class = ForestLiana.user_class_name.constantize rescue nil
66

config/routes.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
get '/' => 'apimaps#index'
66

77
# Session
8-
post 'sessions' => 'sessions#create'
8+
post 'sessions' => 'sessions#create_with_password'
99
post 'sessions-google' => 'sessions#create_with_google'
1010

1111
# Associations

test/routing/route_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class RouteTest < ActiveSupport::TestCase
1818
assert_routing({
1919
method: 'post', path: 'sessions'
2020
}, {
21-
controller: 'forest_liana/sessions', action: 'create'
21+
controller: 'forest_liana/sessions', action: 'create_with_password'
2222
})
2323
assert_routing({
2424
method: 'post', path: 'sessions-google'

0 commit comments

Comments
 (0)