This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Samuel Esposito (author)
Mon Nov 24 02:48:12 -0800 2008
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Mon Jun 23 10:43:12 -0700 2008 | |
| |
README | Mon Jun 23 12:17:00 -0700 2008 | |
| |
Rakefile | Mon Jun 23 10:43:12 -0700 2008 | |
| |
init.rb | Mon Jun 23 10:43:12 -0700 2008 | |
| |
install.rb | Mon Jun 23 10:43:12 -0700 2008 | |
| |
lib/ | Mon Nov 24 02:48:12 -0800 2008 | |
| |
tasks/ | Mon Jun 23 10:43:12 -0700 2008 | |
| |
test/ | Mon Jun 23 10:43:12 -0700 2008 | |
| |
uninstall.rb | Mon Jun 23 10:43:12 -0700 2008 |
README
= HasDetails
HasDetails allows you to store a large amount of (optional) attributes for any model's instance in a serialized column.
It takes care of adding convenience methods to your model, and verifies that the value being assigned is indeed (one of)
the type(s) required for that attribute.
= Example
class User << ActiveRecord::Base
has_details :firstname => String,
:lastname => String,
:birthday => Date,
:gender => [:male, :female]
end
john = User.find(1)
john.birthday = 5.years.ago
john.gender
=> :male
Copyright (c) 2008 Marten Veldthuis, released under the MIT license







