summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-09-19 14:19:37 -0400
committerRobert Speicher <rspeicher@gmail.com>2017-12-19 15:45:07 -0600
commit6f1df8dfaabfebeb5e9ffbd785f263314b817324 (patch)
tree680362d9d011ac266ac3aa8f2288625146382adb /app
parent32ff813d3dccef6378361dff599eca44b05f46d4 (diff)
downloadgitlab-ce-6f1df8dfaabfebeb5e9ffbd785f263314b817324.tar.gz
Accept arguments to blocked JSON serialization methods
Diffstat (limited to 'app')
-rw-r--r--app/models/concerns/blocks_json_serialization.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/blocks_json_serialization.rb b/app/models/concerns/blocks_json_serialization.rb
index cb70c22e207..75c6742260e 100644
--- a/app/models/concerns/blocks_json_serialization.rb
+++ b/app/models/concerns/blocks_json_serialization.rb
@@ -5,7 +5,7 @@
module BlocksJsonSerialization
extend ActiveSupport::Concern
- def to_json
+ def to_json(*args)
raise SecurityError,
"JSON serialization has been disabled on #{self.class.name}"
end