ylecuyer/survey-gizmo-ruby

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

GCorbel opened this issue · 1 comments

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.

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