{"action":"created","issue":{"url":"https://api.github.com/repos/chaps-io/public_activity/issues/252","repository_url":"https://api.github.com/repos/chaps-io/public_activity","labels_url":"https://api.github.com/repos/chaps-io/public_activity/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/chaps-io/public_activity/issues/252/comments","events_url":"https://api.github.com/repos/chaps-io/public_activity/issues/252/events","html_url":"https://github.com/chaps-io/public_activity/issues/252","id":137415466,"number":252,"title":"Consider removing PublicActivity::StoreController","user":{"login":"TheKidCoder","id":471559,"avatar_url":"https://avatars.githubusercontent.com/u/471559?v=3","gravatar_id":"","url":"https://api.github.com/users/TheKidCoder","html_url":"https://github.com/TheKidCoder","followers_url":"https://api.github.com/users/TheKidCoder/followers","following_url":"https://api.github.com/users/TheKidCoder/following{/other_user}","gists_url":"https://api.github.com/users/TheKidCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/TheKidCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheKidCoder/subscriptions","organizations_url":"https://api.github.com/users/TheKidCoder/orgs","repos_url":"https://api.github.com/users/TheKidCoder/repos","events_url":"https://api.github.com/users/TheKidCoder/events{/privacy}","received_events_url":"https://api.github.com/users/TheKidCoder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chaps-io/public_activity/labels/change","name":"change","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-29T23:42:37Z","updated_at":"2016-03-17T22:33:42Z","closed_at":null,"body":"First off, great gem.\r\n\r\nSecondly, I would just like to offer up my opinion regarding the `PublicActivity::StoreController` module.\r\n\r\nI experienced a massive slow-down after using your gem on my jRuby rails app. I looked to see where the problem was a traced it back to including `PublicActivity::StoreController` in my controllers. I looked at the code written and IMHO, I feel like it's is trying to do way to much when there are simpler and better performing options out there... For example, the papertrail gem uses https://github.com/steveklabnik/request_store for global variable access. That is what I ended up using:\r\n```ruby\r\ntracked owner: -> controller, model {RequestStore[:_current_user]}\r\n```\r\n\r\nOpen to a discussion on it."},"comment":{"url":"https://api.github.com/repos/chaps-io/public_activity/issues/comments/198110158","html_url":"https://github.com/chaps-io/public_activity/issues/252#issuecomment-198110158","issue_url":"https://api.github.com/repos/chaps-io/public_activity/issues/252","id":198110158,"user":{"login":"rmm5t","id":740,"avatar_url":"https://avatars.githubusercontent.com/u/740?v=3","gravatar_id":"","url":"https://api.github.com/users/rmm5t","html_url":"https://github.com/rmm5t","followers_url":"https://api.github.com/users/rmm5t/followers","following_url":"https://api.github.com/users/rmm5t/following{/other_user}","gists_url":"https://api.github.com/users/rmm5t/gists{/gist_id}","starred_url":"https://api.github.com/users/rmm5t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmm5t/subscriptions","organizations_url":"https://api.github.com/users/rmm5t/orgs","repos_url":"https://api.github.com/users/rmm5t/repos","events_url":"https://api.github.com/users/rmm5t/events{/privacy}","received_events_url":"https://api.github.com/users/rmm5t/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T22:33:42Z","updated_at":"2016-03-17T22:33:42Z","body":"See #254 for the refactor suggestions."}}