73b674b613
confirm_password_validation around action, unnecessary helpers removed, rubocop-rails suggestions applied Add username index and unique slug index migrations
8 lines
169 B
Ruby
8 lines
169 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ApplicationController < ActionController::Base
|
|
def authenticate
|
|
@current_user = User.find_by(id: session[:user_id])
|
|
end
|
|
end
|