Added EmptyController in ruby
• Added: - EmptyController in ruby
This commit is contained in:
parent
fb70bfe739
commit
7027cd0bf4
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
|
Loading…
x
Reference in New Issue
Block a user