Skip to content

Commit

Permalink
Fix json method by making param optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin481 committed Dec 21, 2023
1 parent fcfe76f commit 57fa9d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/heartbeat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def register(new_state)
)
end

def as_json(_req)
def as_json(_req = nil)
require 'pry'; binding.pry
{
application: application,
team: team,
Expand Down

0 comments on commit 57fa9d2

Please sign in to comment.