Commit 6f1df8df authored by Robert Speicher's avatar Robert Speicher

Accept arguments to blocked JSON serialization methods

parent 32ff813d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment