refactor: Username and slug unique indexes, before actions for set link and user

confirm_password_validation around action, unnecessary helpers removed, rubocop-rails suggestions applied

Add username index and unique slug index migrations
This commit is contained in:
Juan Rodriguez
2021-06-15 15:24:34 -05:00
parent 9204abf2e3
commit 73b674b613
22 changed files with 95 additions and 93 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
# frozen_string_literal: true
class ApplicationController < ActionController::Base
include SessionsHelper
def authenticate
@current_user = User.find_by(id: session[:user_id])
end
end