forked from marten/has_details
HasDetails is a Rails plugin to allow you to serialize an arbitrary amount of (optional) attributes into a column.
License
erkki/has_details
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
= 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
About
HasDetails is a Rails plugin to allow you to serialize an arbitrary amount of (optional) attributes into a column.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Ruby 100.0%