lib/generators/authentication/templates/controllers/api/sessions_controller.rb.tt in authentication-zero-2.1.1 vs lib/generators/authentication/templates/controllers/api/sessions_controller.rb.tt in authentication-zero-2.2.1
- old
+ new
@@ -1,8 +1,8 @@
class SessionsController < ApplicationController
- skip_before_action :authenticate, only: :create
-
before_action :set_session, only: %i[ show destroy ]
+
+ skip_before_action :authenticate, only: :create
def index
render json: Current.<%= singular_table_name %>.sessions.order(created_at: :desc)
end