Added EmptyController in ruby
• Added: - EmptyController in ruby
This commit is contained in:
19
app/controllers/empty_controller.rb
Normal file
19
app/controllers/empty_controller.rb
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user