diff options
Diffstat (limited to 'lib/json/add/regexp.rb')
-rw-r--r-- | lib/json/add/regexp.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/json/add/regexp.rb b/lib/json/add/regexp.rb index a93866b..39d69fe 100644 --- a/lib/json/add/regexp.rb +++ b/lib/json/add/regexp.rb @@ -24,7 +24,7 @@ class Regexp # Stores class name (Regexp) with options <tt>o</tt> and source <tt>s</tt> # (Regexp or String) as JSON string - def to_json(*) - as_json.to_json + def to_json(*args) + as_json.to_json(*args) end end |