about summary refs log tree commit diff
path: root/app/lib/settings/scoped_settings.rb
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2020-07-17 14:00:08 -0500
committerStarfall <us@starfall.systems>2020-07-17 14:00:08 -0500
commitc5b7bf491e9aaf0a92f7899d60d12705d98436dc (patch)
tree7506b93ec2c20bf068f2b57c31d0a05e0485aed5 /app/lib/settings/scoped_settings.rb
parent2f20bc2a8275875033c97249825a2a3305980c3b (diff)
parent801e546ecc1efb4103232d8265229eb455a8dd5b (diff)
glitch 3.2.0 update / Merge branch 'glitch' into main
Diffstat (limited to 'app/lib/settings/scoped_settings.rb')
-rw-r--r--app/lib/settings/scoped_settings.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/lib/settings/scoped_settings.rb b/app/lib/settings/scoped_settings.rb
index 4d21e0de7..8aa826561 100644
--- a/app/lib/settings/scoped_settings.rb
+++ b/app/lib/settings/scoped_settings.rb
@@ -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)