mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 20:14:08 +00:00
Lint files to rubocop omakase standards
root ➜ /workspace (fix-rubocop-issues) $ rubocop Inspecting 54 files ...................................................... 54 files inspected, no offenses detected
This commit is contained in:
@@ -15,7 +15,7 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
def authenticate_user_from_session
|
||||
User.find_by(id: session[:user_id])
|
||||
end
|
||||
end
|
||||
|
||||
def user_signed_in?
|
||||
current_user.present?
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class PagesController < ApplicationController
|
||||
before_action :authenticate_user!
|
||||
|
||||
|
||||
def dashboard
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class PasswordResetsController < ApplicationController
|
||||
layout "auth"
|
||||
|
||||
|
||||
def new
|
||||
end
|
||||
|
||||
@@ -37,4 +37,3 @@ class PasswordResetsController < ApplicationController
|
||||
params.require(:user).permit(:password, :password_confirmation)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -18,4 +18,3 @@ class PasswordsController < ApplicationController
|
||||
params.require(:user).permit(:password, :password_confirmation, :password_challenge).with_defaults(password_challenge: "")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class RegistrationsController < ApplicationController
|
||||
layout "auth"
|
||||
|
||||
|
||||
def new
|
||||
@user = User.new
|
||||
end
|
||||
@@ -27,4 +27,3 @@ class RegistrationsController < ApplicationController
|
||||
params.require(:user).permit(:name, :email, :password, :password_confirmation)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class SessionsController < ApplicationController
|
||||
layout "auth"
|
||||
|
||||
|
||||
def new
|
||||
end
|
||||
|
||||
@@ -13,10 +13,9 @@ class SessionsController < ApplicationController
|
||||
render :new, status: :unprocessable_entity
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def destroy
|
||||
logout
|
||||
redirect_to root_path, notice: "You have signed out successfully."
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user