{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/administrate/issues/143","labels_url":"https://api.github.com/repos/thoughtbot/administrate/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/administrate/issues/143/comments","events_url":"https://api.github.com/repos/thoughtbot/administrate/issues/143/events","html_url":"https://github.com/thoughtbot/administrate/issues/143","id":115092388,"number":143,"title":"Feature Request: Make it ORM-agnostic","user":{"login":"mrbrdo","id":167990,"avatar_url":"https://avatars.githubusercontent.com/u/167990?v=3","gravatar_id":"","url":"https://api.github.com/users/mrbrdo","html_url":"https://github.com/mrbrdo","followers_url":"https://api.github.com/users/mrbrdo/followers","following_url":"https://api.github.com/users/mrbrdo/following{/other_user}","gists_url":"https://api.github.com/users/mrbrdo/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbrdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbrdo/subscriptions","organizations_url":"https://api.github.com/users/mrbrdo/orgs","repos_url":"https://api.github.com/users/mrbrdo/repos","events_url":"https://api.github.com/users/mrbrdo/events{/privacy}","received_events_url":"https://api.github.com/users/mrbrdo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thoughtbot/administrate/labels/Feature%20Request","name":"Feature Request","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-04T16:30:08Z","updated_at":"2015-11-05T08:35:52Z","closed_at":null,"body":"We are using Sequel and are looking for a decent admin (which is a problem even if using ActiveRecord). Since this project still seems young and showing promise, it would be nice if you could extract ORM-specific operations into a separate module so they can more easily be changed for a different ORM.\r\n\r\nI think the only difficult thing I found in respect to Sequel was assoc_ids getter/setter which does not exist in Sequel. But it's not that big of a deal as it is not too hard to implement (although it would be nicer if this could be handled in the controller instead of unconditionally offloading it to the model, which may not be able to handle it in some ORMs).\r\n\r\nI got most of it working with these monkey-patches: https://gist.github.com/mrbrdo/56da0dd984b4191a7273\r\n\r\nI would be willing to provide Sequel implementations for such a module.\r\n\r\nCheers"},"comment":{"url":"https://api.github.com/repos/thoughtbot/administrate/issues/comments/153988465","html_url":"https://github.com/thoughtbot/administrate/issues/143#issuecomment-153988465","issue_url":"https://api.github.com/repos/thoughtbot/administrate/issues/143","id":153988465,"user":{"login":"diddeb","id":272143,"avatar_url":"https://avatars.githubusercontent.com/u/272143?v=3","gravatar_id":"","url":"https://api.github.com/users/diddeb","html_url":"https://github.com/diddeb","followers_url":"https://api.github.com/users/diddeb/followers","following_url":"https://api.github.com/users/diddeb/following{/other_user}","gists_url":"https://api.github.com/users/diddeb/gists{/gist_id}","starred_url":"https://api.github.com/users/diddeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diddeb/subscriptions","organizations_url":"https://api.github.com/users/diddeb/orgs","repos_url":"https://api.github.com/users/diddeb/repos","events_url":"https://api.github.com/users/diddeb/events{/privacy}","received_events_url":"https://api.github.com/users/diddeb/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T08:35:52Z","updated_at":"2015-11-05T08:35:52Z","body":"> Make it ORM-agnostic\r\n:+1: \r\n\r\nWe're on a highly custom domain model, using our own backend (not Sequel, not AR). If the internals of the API were a bit more general we could make our own adapters and make it work fine."}}