{"id":16753468,"url":"https://github.com/thbar/activerecord-hooks","last_synced_at":"2026-03-18T22:01:58.400Z","repository":{"id":2626617,"uuid":"3612427","full_name":"thbar/activerecord-hooks","owner":"thbar","description":"A place to discuss ActiveRecord extensibility","archived":false,"fork":false,"pushed_at":"2012-03-05T14:27:40.000Z","size":96,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T18:11:32.563Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thbar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-03-03T17:47:43.000Z","updated_at":"2023-07-01T21:27:00.000Z","dependencies_parsed_at":"2022-07-31T12:17:57.900Z","dependency_job_id":null,"html_url":"https://github.com/thbar/activerecord-hooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thbar%2Factiverecord-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thbar%2Factiverecord-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thbar%2Factiverecord-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thbar%2Factiverecord-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thbar","download_url":"https://codeload.github.com/thbar/activerecord-hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830922,"owners_count":20354850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T02:50:10.628Z","updated_at":"2026-01-02T08:35:34.307Z","avatar_url":"https://github.com/thbar.png","language":null,"readme":"This repository is a place to discuss the current needs to extend ActiveRecord and see if we can provide a clean, shared way to achieve this.\n\n### Some background\n\n[adapter_extensions](https://github.com/activewarehouse/adapter_extensions) is a gem that add features to ActiveRecord adapters. It started in 2006 and is currently maintained by Thibaut Barrère.\n\nUpgrading adapter_extensions to Rails 3 wasn't trivial, so the maintainer looked for a solution and discovered [activerecord-import](https://github.com/zdennis/activerecord-import) by Zach Dennis, which implemented a trick to extend ActiveRecord adapters.\n\nAfter chatting a bit, we came to the conclusion that it would be useful to create a common solution to extend ActiveRecord.\n\n### TODO\n\n* write down the current use-cases\n* define ActiveRecord hooks or other tricks which would let us extend as needed\n* create a gem that will solve that\n* eventually, merge the gem into Rails itself","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthbar%2Factiverecord-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthbar%2Factiverecord-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthbar%2Factiverecord-hooks/lists"}