{"action":"created","issue":{"url":"https://api.github.com/repos/airblade/paper_trail/issues/605","labels_url":"https://api.github.com/repos/airblade/paper_trail/issues/605/labels{/name}","comments_url":"https://api.github.com/repos/airblade/paper_trail/issues/605/comments","events_url":"https://api.github.com/repos/airblade/paper_trail/issues/605/events","html_url":"https://github.com/airblade/paper_trail/issues/605","id":104505268,"number":605,"title":"Show changes of different but connected models","user":{"login":"Stefflan00","id":4007440,"avatar_url":"https://avatars.githubusercontent.com/u/4007440?v=3","gravatar_id":"","url":"https://api.github.com/users/Stefflan00","html_url":"https://github.com/Stefflan00","followers_url":"https://api.github.com/users/Stefflan00/followers","following_url":"https://api.github.com/users/Stefflan00/following{/other_user}","gists_url":"https://api.github.com/users/Stefflan00/gists{/gist_id}","starred_url":"https://api.github.com/users/Stefflan00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stefflan00/subscriptions","organizations_url":"https://api.github.com/users/Stefflan00/orgs","repos_url":"https://api.github.com/users/Stefflan00/repos","events_url":"https://api.github.com/users/Stefflan00/events{/privacy}","received_events_url":"https://api.github.com/users/Stefflan00/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-02T15:18:26Z","updated_at":"2015-09-02T22:04:34Z","closed_at":"2015-09-02T22:04:34Z","body":"**3 Models**\r\nCampaign, CampaignOffer and Offer\r\nCampaignOffer has on Offer and one Campaign attached.\r\n\r\nSo on a CampaignOffer i want to show all changes that happen on it self, on the offer and on the campaign.\r\nAll 3 models are connected to the versions table.\r\nAnd i track changes.\r\nis i could now get each object like this:\r\nco = CampaignOffer.first\r\nco.versions('created_at DESC')\r\nco.offer.versions('created_at DESC')\r\nco.campaign.versions('created_at DESC')\r\n\r\nbut i want to use something like this:\r\n@versions = PaperTrail::Version.order('created_at DESC')\r\nwith a where clause.\r\n\r\nAnyone can help me with that?"},"comment":{"url":"https://api.github.com/repos/airblade/paper_trail/issues/comments/137258892","html_url":"https://github.com/airblade/paper_trail/issues/605#issuecomment-137258892","issue_url":"https://api.github.com/repos/airblade/paper_trail/issues/605","id":137258892,"user":{"login":"jaredbeck","id":380809,"avatar_url":"https://avatars.githubusercontent.com/u/380809?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredbeck","html_url":"https://github.com/jaredbeck","followers_url":"https://api.github.com/users/jaredbeck/followers","following_url":"https://api.github.com/users/jaredbeck/following{/other_user}","gists_url":"https://api.github.com/users/jaredbeck/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredbeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredbeck/subscriptions","organizations_url":"https://api.github.com/users/jaredbeck/orgs","repos_url":"https://api.github.com/users/jaredbeck/repos","events_url":"https://api.github.com/users/jaredbeck/events{/privacy}","received_events_url":"https://api.github.com/users/jaredbeck/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T22:04:34Z","updated_at":"2015-09-02T22:04:34Z","body":"I'm sorry, but would you mind asking this question on Stack Overflow instead? We're trying to only use github issues for actual bug reports and feature requests.  Thanks."}}