Sha256: 8ca6ed6ae0a00151abc138c9e18547caa73b2a623f743452a92268388870f2b7
Contents?: true
Size: 445 Bytes
Versions: 1
Compression:
Stored size: 445 Bytes
Contents
object @response_set attribute :api_id => :uuid attribute :created_at attribute :completed_at node(:survey_id){|rs| rs.survey.api_id } child :responses do attribute :api_id => :uuid attribute :created_at attribute :updated_at => :modified_at node(:answer_id){|r| r.answer.api_id } node(:question_id){|r| r.question.api_id } node(:value, :if => lambda{|r| r.answer.response_class != "answer"}){|r| r.as(r.answer.response_class) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
surveyor-0.22.0 | app/views/surveyor/show.json.rabl |