Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def latest_workshop_completion workshop_id
- @questionnaire = WorkshopRkaQuestionnaire.find(params[:workshop_rka_questionnaire_id], :order => "created_at DESC")
- @questionnaire.rka_completions.find_by_stay_id(self.id, :order => "created_at DESC")
- end
- def latest_technical_completion
- @questionnaire = TechnicalRkaQuestionnaire.first(:order => "created_at DESC")
- @questionnaire.rka_completions.find_by_stay_id(self.id, :order => "created_at DESC")
- end
- def latest_social_completion
- @questionnaire = SocialRkaQuestionnaire.first(:order => "created_at DESC")
- @questionnaire.rka_completions.find_by_stay_id(self.id, :order => "created_at DESC")
- # [@completion, ]
- end
- def get_latest_type_rka_completion object, options=nil
- ...
- end
Add Comment
Please, Sign In to add comment