FIX: Don't cast ids to ints, as user results have string ids.

This commit is contained in:
Robin Ward 2013-05-28 16:59:22 -04:00
parent e7c739f337
commit b3678125dc
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class Search
def initialize(row)
row.symbolize_keys!
@type = row[:type].to_sym
@url, @id, @title = row[:url], row[:id].to_i, row[:title]
@url, @id, @title = row[:url], row[:id], row[:title]
end
def as_json