{"action":"opened","issue":{"url":"https://api.github.com/repos/rubymonsters/diversity_ticketing/issues/84","labels_url":"https://api.github.com/repos/rubymonsters/diversity_ticketing/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/rubymonsters/diversity_ticketing/issues/84/comments","events_url":"https://api.github.com/repos/rubymonsters/diversity_ticketing/issues/84/events","html_url":"https://github.com/rubymonsters/diversity_ticketing/issues/84","id":115663735,"number":84,"title":"Questions and answers are not used anymore, code should be deleted","user":{"login":"lisbethmarianne","id":11691539,"avatar_url":"https://avatars.githubusercontent.com/u/11691539?v=3","gravatar_id":"","url":"https://api.github.com/users/lisbethmarianne","html_url":"https://github.com/lisbethmarianne","followers_url":"https://api.github.com/users/lisbethmarianne/followers","following_url":"https://api.github.com/users/lisbethmarianne/following{/other_user}","gists_url":"https://api.github.com/users/lisbethmarianne/gists{/gist_id}","starred_url":"https://api.github.com/users/lisbethmarianne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisbethmarianne/subscriptions","organizations_url":"https://api.github.com/users/lisbethmarianne/orgs","repos_url":"https://api.github.com/users/lisbethmarianne/repos","events_url":"https://api.github.com/users/lisbethmarianne/events{/privacy}","received_events_url":"https://api.github.com/users/lisbethmarianne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-07T12:51:34Z","updated_at":"2015-11-07T12:51:34Z","closed_at":null,"body":"ie. in application.rb \r\n\r\nvalidate :presence_of_questions\r\n\r\n  def presence_of_questions\r\n    if event.question_1.present? && answer_1.blank?\r\n      errors.add(:answer_1, \"can`t be blank\")\r\n    end\r\n    if event.question_2.present? && answer_2.blank?\r\n      errors.add(:answer_2, \"can`t be blank\")\r\n    end\r\n    if event.question_3.present? && answer_3.blank?\r\n      errors.add(:answer_3, \"can`t be blank\")\r\n    end"}}