From 232efb57cbac9603bd2b4f69b9102e8a0ff0f19b Mon Sep 17 00:00:00 2001 From: Steven Date: Fri, 17 Sep 2021 20:09:07 +0800 Subject: [PATCH] cosmetic changes --- Gemfile.lock | 3 +-- app/controllers/application_controller.rb | 1 + app/views/layouts/application.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index b425d0d31..eb0f2c885 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -114,8 +114,6 @@ GEM minitest (5.14.4) msgpack (1.4.2) nio4r (2.5.7) - nokogiri (1.11.3-x86_64-darwin) - racc (~> 1.4) nokogiri (1.11.3-x86_64-linux) racc (~> 1.4) orm_adapter (0.5.0) @@ -259,6 +257,7 @@ GEM zeitwerk (2.4.2) PLATFORMS + ruby x86_64-linux DEPENDENCIES diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 09705d12a..6b4dcfa85 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,2 +1,3 @@ class ApplicationController < ActionController::Base + before_action :authenticate_user! end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 4e52ccbf3..2b106cffc 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -10,8 +10,8 @@ - <%= yield %>

<%= notice %>

<%= alert %>

+ <%= yield %>