Permalink
Browse files

Merge pull request #7654 from steveklabnik/issue_4857

Improve Process::Status#to_json
  • Loading branch information...
2 parents a086ef6 + afe9654 commit 3ec6783613e062da231d9a0d335cbf61bfad4bb4 @fxn fxn committed Sep 15, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 activesupport/lib/active_support/core_ext/object/to_json.rb
@@ -17,3 +17,11 @@ def to_json(options = nil)
end
end
end
+
+module Process
+ class Status
+ def as_json(options = nil)
+ { :exitstatus => exitstatus, :pid => pid }
+ end
+ end
+end

0 comments on commit 3ec6783

Please sign in to comment.