Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thbar/activerecord-hooks
A place to discuss ActiveRecord extensibility
https://github.com/thbar/activerecord-hooks
Last synced: about 1 month ago
JSON representation
A place to discuss ActiveRecord extensibility
- Host: GitHub
- URL: https://github.com/thbar/activerecord-hooks
- Owner: thbar
- Created: 2012-03-03T17:47:43.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-03-05T14:27:40.000Z (almost 13 years ago)
- Last Synced: 2024-10-14T02:50:22.497Z (2 months ago)
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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.
### Some background
[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.
Upgrading 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.
After chatting a bit, we came to the conclusion that it would be useful to create a common solution to extend ActiveRecord.
### TODO
* write down the current use-cases
* define ActiveRecord hooks or other tricks which would let us extend as needed
* create a gem that will solve that
* eventually, merge the gem into Rails itself