{"action":"created","issue":{"url":"https://api.github.com/repos/Coursemology/coursemology2/issues/699","labels_url":"https://api.github.com/repos/Coursemology/coursemology2/issues/699/labels{/name}","comments_url":"https://api.github.com/repos/Coursemology/coursemology2/issues/699/comments","events_url":"https://api.github.com/repos/Coursemology/coursemology2/issues/699/events","html_url":"https://github.com/Coursemology/coursemology2/pull/699","id":123650125,"number":699,"title":"Find all conditionals of a required object","user":{"login":"minhtule","id":1637627,"avatar_url":"https://avatars.githubusercontent.com/u/1637627?v=3","gravatar_id":"","url":"https://api.github.com/users/minhtule","html_url":"https://github.com/minhtule","followers_url":"https://api.github.com/users/minhtule/followers","following_url":"https://api.github.com/users/minhtule/following{/other_user}","gists_url":"https://api.github.com/users/minhtule/gists{/gist_id}","starred_url":"https://api.github.com/users/minhtule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhtule/subscriptions","organizations_url":"https://api.github.com/users/minhtule/orgs","repos_url":"https://api.github.com/users/minhtule/repos","events_url":"https://api.github.com/users/minhtule/events{/privacy}","received_events_url":"https://api.github.com/users/minhtule/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-23T12:19:48Z","updated_at":"2016-01-22T00:37:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Coursemology/coursemology2/pulls/699","html_url":"https://github.com/Coursemology/coursemology2/pull/699","diff_url":"https://github.com/Coursemology/coursemology2/pull/699.diff","patch_url":"https://github.com/Coursemology/coursemology2/pull/699.patch"},"body":"This module should be a library like `SendFile`, not a mixin. For example,\r\n```ruby\r\nachievement = Course::Achievement.first\r\nconditionals_depending_on_the_achievement = Condition.conditionals_of(achievement)\r\n```"},"comment":{"url":"https://api.github.com/repos/Coursemology/coursemology2/issues/comments/173761766","html_url":"https://github.com/Coursemology/coursemology2/pull/699#issuecomment-173761766","issue_url":"https://api.github.com/repos/Coursemology/coursemology2/issues/699","id":173761766,"user":{"login":"lowjoel","id":2505070,"avatar_url":"https://avatars.githubusercontent.com/u/2505070?v=3","gravatar_id":"","url":"https://api.github.com/users/lowjoel","html_url":"https://github.com/lowjoel","followers_url":"https://api.github.com/users/lowjoel/followers","following_url":"https://api.github.com/users/lowjoel/following{/other_user}","gists_url":"https://api.github.com/users/lowjoel/gists{/gist_id}","starred_url":"https://api.github.com/users/lowjoel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lowjoel/subscriptions","organizations_url":"https://api.github.com/users/lowjoel/orgs","repos_url":"https://api.github.com/users/lowjoel/repos","events_url":"https://api.github.com/users/lowjoel/events{/privacy}","received_events_url":"https://api.github.com/users/lowjoel/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T00:37:09Z","updated_at":"2016-01-22T00:37:09Z","body":"I was thinking of Course::Conditional.find_conditions_for(obj), or Course::Condition.find_conditions_for(obj)?\r\n\r\nI'm just not sure where else this will be used, if the only case is to show what attempting an object then either of the two places above make sense.\r\n\r\nWhat do you think?"}}