Skip to content

Commit

Permalink
Add dummy available_custom_fields to Deleted users to make migrations…
Browse files Browse the repository at this point in the history
… runs correctly
  • Loading branch information
dombesz committed Aug 12, 2024
1 parent 87bd93a commit 3e7db14
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions app/models/deleted_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,13 @@ def self.first
end

# Overrides a few properties
def logged?; false end

def builtin?; true end

def admin; false end

def name(*_args); I18n.t("user.deleted") end

def mail; nil end

def time_zone; nil end

def rss_key; nil end

def destroy; false end
def available_custom_fields = []
def logged? = false
def builtin? = true
def admin = false
def name(*_args) = I18n.t("user.deleted")
def mail = nil
def time_zone = nil
def rss_key = nil
def destroy = false
end

0 comments on commit 3e7db14

Please sign in to comment.