Commit 750b2b3b authored by Robert Speicher's avatar Robert Speicher

Accept arguments to blocked JSON serialization methods

parent 0e331206
......@@ -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