{"action":"created","issue":{"url":"https://api.github.com/repos/evercam/evercam-api/issues/525","repository_url":"https://api.github.com/repos/evercam/evercam-api","labels_url":"https://api.github.com/repos/evercam/evercam-api/issues/525/labels{/name}","comments_url":"https://api.github.com/repos/evercam/evercam-api/issues/525/comments","events_url":"https://api.github.com/repos/evercam/evercam-api/issues/525/events","html_url":"https://github.com/evercam/evercam-api/issues/525","id":117813156,"number":525,"title":"Refactor authentication helper","user":{"login":"fteem","id":854173,"avatar_url":"https://avatars.githubusercontent.com/u/854173?v=3","gravatar_id":"","url":"https://api.github.com/users/fteem","html_url":"https://github.com/fteem","followers_url":"https://api.github.com/users/fteem/followers","following_url":"https://api.github.com/users/fteem/following{/other_user}","gists_url":"https://api.github.com/users/fteem/gists{/gist_id}","starred_url":"https://api.github.com/users/fteem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fteem/subscriptions","organizations_url":"https://api.github.com/users/fteem/orgs","repos_url":"https://api.github.com/users/fteem/repos","events_url":"https://api.github.com/users/fteem/events{/privacy}","received_events_url":"https://api.github.com/users/fteem/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/evercam/evercam-api/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/evercam/evercam-api/milestones/8","html_url":"https://github.com/evercam/evercam-api/milestones/Move%20to%20Evercam-Media","labels_url":"https://api.github.com/repos/evercam/evercam-api/milestones/8/labels","id":1717104,"number":8,"title":"Move to Evercam-Media","description":"","creator":{"login":"marcoherbst","id":5648894,"avatar_url":"https://avatars.githubusercontent.com/u/5648894?v=3","gravatar_id":"","url":"https://api.github.com/users/marcoherbst","html_url":"https://github.com/marcoherbst","followers_url":"https://api.github.com/users/marcoherbst/followers","following_url":"https://api.github.com/users/marcoherbst/following{/other_user}","gists_url":"https://api.github.com/users/marcoherbst/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoherbst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoherbst/subscriptions","organizations_url":"https://api.github.com/users/marcoherbst/orgs","repos_url":"https://api.github.com/users/marcoherbst/repos","events_url":"https://api.github.com/users/marcoherbst/events{/privacy}","received_events_url":"https://api.github.com/users/marcoherbst/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":1,"state":"open","created_at":"2016-04-19T14:26:22Z","updated_at":"2016-04-19T15:16:46Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-11-19T13:25:48Z","updated_at":"2016-04-19T15:16:46Z","closed_at":"2016-04-19T15:16:46Z","body":"[Opening this by request from @marcoherbst.]\r\n\r\nOne concrete example that needs refactoring is this: https://github.com/evercam/evercam-api/blob/master/app/api/v1/helpers/authorization_helper.rb#L45\r\n\r\nThe whole idea of adding **this much** functionality via a mixin is error prone. I think that @mosic agrees to this as well.\r\n\r\n\r\nP.S. Nothing urgent, we should look at this in 2016."},"comment":{"url":"https://api.github.com/repos/evercam/evercam-api/issues/comments/211974400","html_url":"https://github.com/evercam/evercam-api/issues/525#issuecomment-211974400","issue_url":"https://api.github.com/repos/evercam/evercam-api/issues/525","id":211974400,"user":{"login":"mosic","id":1229422,"avatar_url":"https://avatars.githubusercontent.com/u/1229422?v=3","gravatar_id":"","url":"https://api.github.com/users/mosic","html_url":"https://github.com/mosic","followers_url":"https://api.github.com/users/mosic/followers","following_url":"https://api.github.com/users/mosic/following{/other_user}","gists_url":"https://api.github.com/users/mosic/gists{/gist_id}","starred_url":"https://api.github.com/users/mosic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mosic/subscriptions","organizations_url":"https://api.github.com/users/mosic/orgs","repos_url":"https://api.github.com/users/mosic/repos","events_url":"https://api.github.com/users/mosic/events{/privacy}","received_events_url":"https://api.github.com/users/mosic/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T15:16:46Z","updated_at":"2016-04-19T15:16:46Z","body":"@marcoherbst This was handled in evercam-media, closing the issue."}}