{"action":"opened","issue":{"url":"https://api.github.com/repos/mrkamel/search_cop/issues/13","labels_url":"https://api.github.com/repos/mrkamel/search_cop/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/mrkamel/search_cop/issues/13/comments","events_url":"https://api.github.com/repos/mrkamel/search_cop/issues/13/events","html_url":"https://github.com/mrkamel/search_cop/issues/13","id":55693733,"number":13,"title":"Sub-scopes in Rails 4","user":{"login":"sanfordredlich","id":1209321,"avatar_url":"https://avatars.githubusercontent.com/u/1209321?v=3","gravatar_id":"","url":"https://api.github.com/users/sanfordredlich","html_url":"https://github.com/sanfordredlich","followers_url":"https://api.github.com/users/sanfordredlich/followers","following_url":"https://api.github.com/users/sanfordredlich/following{/other_user}","gists_url":"https://api.github.com/users/sanfordredlich/gists{/gist_id}","starred_url":"https://api.github.com/users/sanfordredlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanfordredlich/subscriptions","organizations_url":"https://api.github.com/users/sanfordredlich/orgs","repos_url":"https://api.github.com/users/sanfordredlich/repos","events_url":"https://api.github.com/users/sanfordredlich/events{/privacy}","received_events_url":"https://api.github.com/users/sanfordredlich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-27T23:53:02Z","updated_at":"2015-01-27T23:53:02Z","closed_at":null,"body":"Thanks for this! I'd like to optimize my query by using scope (see \"scope { joins(:author).eager_load(:comments) } # etc.\" in the docs). That formulation doesn't work in Rails 4. Can you update with tips on what would work for Rails 4?"}}