Apply single quote convention in Ruby code

This commit is contained in:
riggraz
2019-08-24 20:04:53 +02:00
parent 0f74fc2b88
commit 87c205ca60
17 changed files with 60 additions and 56 deletions

View File

@@ -10,13 +10,13 @@ module Admin
def authenticate_admin
unless user_signed_in?
flash[:alert] = "You must be logged in to access this page."
flash[:alert] = 'You must be logged in to access this page.'
redirect_to new_user_session_path
return
end
unless current_user.moderator? || current_user.admin?
flash[:alert] = "You do not have the privilegies to access this page."
flash[:alert] = 'You do not have the privilegies to access this page.'
redirect_to root_path
return
end