From 533be0af2c23b5e8a70cd43b92a03080b90b1aac Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Thu, 26 Mar 2020 02:34:27 +0200 Subject: [PATCH] Random small fixes --- app/controllers/users_controller.rb | 2 +- config/environment.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 462209a..2cd613f 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -21,7 +21,7 @@ class UsersController < ApplicationController @page = "general" respond_to do |format| format.js do - @page = params[:page] if self.PAGES.include?(params[:page]) + @page = params[:page] if PAGES.include?(params[:page]) end format.html {} end diff --git a/config/environment.rb b/config/environment.rb index e882e65..47f1e7d 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -3,4 +3,4 @@ require 'verification' require 'exceptions' ActiveSupport::Deprecation.silenced = true -Rails.Application.initialize! +Rails.application.initialize!