Magic Models
→ by Dr Nic
conjure 1. To create events that appear to be magical
- David Copperfield website
-
Dr Nic’s Magic Models ...
The world famous Dr Nic’s Magic Models. Never write a vanilla ActiveRecord class again.
If you have a
peopletable, you can ask forPersonclass without defining it! -
Magic Multi-Connections ...
ActiveRecord models are allowed one connection to a database at a time, per class. This is now fixed.
Use a module for each connection. Your model classes are automatically accessible through these modules, connected to each database as required. -
Magic Model Generator ...
Got 200 tables in your legacy database? Generate all 200 ActiveRecord model classes in 60 seconds.
Free validations. Free associations. Fast.
-
Magic Wiggly Line (coming)
Mispelling of clas and mtehod names is alowed.
Who is Dr Nic Williams?
He likes to ego-surf every once in a while.
He is funny.
He blogs and is funny simultaneously – http://www.drnicwilliams.com
Do this – Vote for me as Most Good Looking Rubyist
Also by Dr Nic
-
Composite Primary Keys ...
Providing ActiveRecords with composite primary keys and composite key associations.
-
New Gem Generator ...
Use this for each new Ruby gem you create
-
Map by Method ...
Instead of
list.map {|item| item.name}you can uselist.map_by_name. Very powerful for clean syntax. -
Gems on Rails ...
Bundle your dependent gems into your Rails apps.
Forum
Discussion about all Magic Model projects is on the Magic Models forum:
http://groups.google.com/group/magicmodels
Licence
All this code is free to use under the terms of the MIT licence.
Contact
Comments are welcome. Send an email to Dr Nic Williams.
Dr Nic, 23rd May 2007
Theme extended from Paul Battley