Update to latest Rails. A little bit of jiggery-pokery is involved, since they neglected to re-include vendored Rack in this release.
10 lines
127 B
Ruby
10 lines
127 B
Ruby
class Regexp
|
|
def to_json(options = nil) #:nodoc:
|
|
inspect
|
|
end
|
|
|
|
def as_json(options = nil) #:nodoc:
|
|
self
|
|
end
|
|
end
|