lib/active_support/json/encoders/regexp.rb in activesupport-2.3.2 vs lib/active_support/json/encoders/regexp.rb in activesupport-2.3.3

- old
+ new

@@ -1,5 +1,9 @@ class Regexp def to_json(options = nil) #:nodoc: inspect end + + def as_json(options = nil) #:nodoc: + self + end end