forked from External/greenlight
Added an env variable that allows maitenance mode (#679)
This commit is contained in:
committed by
Jesus Federico
parent
f2373ad21e
commit
02c0d577f8
@ -22,4 +22,8 @@ class ApplicationRecord < ActiveRecord::Base
|
||||
def to_param
|
||||
uid
|
||||
end
|
||||
|
||||
def readonly?
|
||||
ENV["MAINTENANCE_MODE"] == "readonly"
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user