Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

Commit

Permalink
Merge pull request #579 from hacken-in/bug/578-activerecord-statement…
Browse files Browse the repository at this point in the history
…invalid-in-radar-fetch

entry_id must be a string, otherwise psql will vomit. Fixes #578
  • Loading branch information
bascht committed Apr 9, 2015
2 parents 780d5ae + a62bbe4 commit 740c5c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/radar/base.rb
Expand Up @@ -26,7 +26,7 @@ def fetch(start_time = Time.now)
end

def update_event(event)
entry = @radar_setting.entries.find_or_create_by(entry_id: event[:id])
entry = @radar_setting.entries.find_or_create_by(entry_id: event[:id].to_s)
if (entry.entry_date != event[:time] ||
entry.previous_confirmed_content != event.except(:id, :time))

Expand Down

0 comments on commit 740c5c6

Please sign in to comment.