0
0
Fork 0

Merge branch 'master' into glitch-soc/merge-upstream

Conflicts:
- `config/routes.rb`:
  Upstream disabled E2EE routes, which we did earlier, but slightly
  differently. Took upstream's version.
This commit is contained in:
Thibaut Girka 2020-07-15 15:32:40 +02:00
commit 3f60b096b5
156 changed files with 2855 additions and 1070 deletions

View file

@ -12,7 +12,7 @@ module Settings
@object = object
end
# rubocop:disable Style/MethodMissing
# rubocop:disable Style/MethodMissingSuper
def method_missing(method, *args)
method_name = method.to_s
# set a value for a variable
@ -25,7 +25,7 @@ module Settings
self[method_name]
end
end
# rubocop:enable Style/MethodMissing
# rubocop:enable Style/MethodMissingSuper
def respond_to_missing?(*)
true
@ -49,7 +49,6 @@ module Settings
record.update!(value: value)
Rails.cache.write(Setting.cache_key(key, @object), value)
value
end
def [](key)