Skip to content

Commit

Permalink
feat(heartbeat resource): cache json response body
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Sep 25, 2017
1 parent ebd2aba commit f2ac0f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/pact_broker/diagnostic/resources/heartbeat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def content_types_provided
end

def to_json
{
@@json ||= {
"ok" => true,
"_links" => {
"self" => {
Expand All @@ -23,7 +23,6 @@ def to_json
}
}.to_json
end

end
end
end
Expand Down

0 comments on commit f2ac0f5

Please sign in to comment.