lib/timber/contexts/user.rb in timber-1.1.2 vs lib/timber/contexts/user.rb in timber-1.1.3
- old
+ new
@@ -25,10 +25,10 @@
@id = attributes[:id]
@name = attributes[:name]
end
def as_json(_options = {})
- {id: id, name: name}
+ {id: Timber::Object.try(id, :to_s), name: name}
end
end
end
end
\ No newline at end of file