Add extended about page stub
This commit is contained in:
@ -159,6 +159,7 @@ class Account < ApplicationRecord
|
||||
end
|
||||
|
||||
def find_remote!(username, domain)
|
||||
return if username.blank?
|
||||
where(arel_table[:username].matches(username.gsub(/[%_]/, '\\\\\0'))).where(domain.nil? ? { domain: nil } : arel_table[:domain].matches(domain.gsub(/[%_]/, '\\\\\0'))).take!
|
||||
end
|
||||
|
||||
|
@ -9,10 +9,9 @@ class Setting < RailsSettings::Base
|
||||
end
|
||||
|
||||
class << self
|
||||
|
||||
def [](key)
|
||||
return super(key) unless rails_initialized?
|
||||
|
||||
|
||||
val = Rails.cache.fetch(cache_key(key, @object)) do
|
||||
db_val = object(key)
|
||||
|
||||
@ -25,7 +24,7 @@ class Setting < RailsSettings::Base
|
||||
default_settings[key]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
val
|
||||
end
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Web
|
||||
def self.table_name_prefix
|
||||
'web_'
|
||||
|
Reference in New Issue
Block a user