From 7027cd0bf4ce89df5b7fd3b8ead47c0b0a995810 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Mon, 9 Nov 2020 12:05:35 -0600 Subject: [PATCH] Added EmptyController in ruby MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Added: - EmptyController in ruby --- app/controllers/empty_controller.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 app/controllers/empty_controller.rb diff --git a/app/controllers/empty_controller.rb b/app/controllers/empty_controller.rb new file mode 100644 index 00000000..d2535600 --- /dev/null +++ b/app/controllers/empty_controller.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +class EmptyController < ActionController::Base + + protected + + def current_user + nil + end + + def current_account + nil + end + + def current_session + nil + end + +end