mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-24 00:54:02 -05:00
b11fdc3ae3
with YAML-defined defaults. Add admin page for editing global settings. Add "site_description" setting that would show as a paragraph on the frontpage
11 lines
235 B
Ruby
11 lines
235 B
Ruby
# frozen_string_literal: true
|
|
|
|
class HashObject
|
|
def initialize(hash)
|
|
hash.each do |k, v|
|
|
instance_variable_set("@#{k}", v)
|
|
self.class.send(:define_method, k, proc { instance_variable_get("@#{k}") })
|
|
end
|
|
end
|
|
end
|