ylecuyer / survey-gizmo-ruby

Gem to use the Survey Gizmo API
MIT License
23 stars 26 forks source link

SurveyGizmo::API::Response.first doesn't set the datesubmitted value. #105

Open GCorbel opened 5 years ago

GCorbel commented 5 years ago

I noticed than this gives nil :

SurveyGizmo::API::Response.first(id: 1, survey_id: 1).datesubmitted

And this gives the correct date :

SurveyGizmo::API::Survey.first(id: survey.survey_id).responses.first.datesubmitted

I'm sure this is the same data. They should both have the submission date.

jarthod commented 5 years ago

I guess it should indeed, you can submit a PR if you have a fix ;)