{"action":"closed","issue":{"url":"https://api.github.com/repos/noglows/betsy/issues/2","labels_url":"https://api.github.com/repos/noglows/betsy/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/noglows/betsy/issues/2/comments","events_url":"https://api.github.com/repos/noglows/betsy/issues/2/events","html_url":"https://github.com/noglows/betsy/issues/2","id":126796831,"number":2,"title":"DRY Application Controller","user":{"login":"lgranger","id":13182238,"avatar_url":"https://avatars.githubusercontent.com/u/13182238?v=3","gravatar_id":"","url":"https://api.github.com/users/lgranger","html_url":"https://github.com/lgranger","followers_url":"https://api.github.com/users/lgranger/followers","following_url":"https://api.github.com/users/lgranger/following{/other_user}","gists_url":"https://api.github.com/users/lgranger/gists{/gist_id}","starred_url":"https://api.github.com/users/lgranger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgranger/subscriptions","organizations_url":"https://api.github.com/users/lgranger/orgs","repos_url":"https://api.github.com/users/lgranger/repos","events_url":"https://api.github.com/users/lgranger/events{/privacy}","received_events_url":"https://api.github.com/users/lgranger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-15T02:55:43Z","updated_at":"2016-01-18T06:29:13Z","closed_at":"2016-01-18T06:29:13Z","body":"app/controllers/application_controller.rb\r\n\r\nSince you are using this logic in a lot of your methods:\r\n\r\nif @current_user != nil\r\n  user = params[:id]\r\nyou can DRY up your code by extracting it out into either a before_action or it's own method that you call within those methods."}}