Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
= 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