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 (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Thu Sep 11 09:38:09 -0700 2008 | |
| |
README.mdown | Thu Sep 11 09:38:09 -0700 2008 | |
| |
init.rb | Thu Sep 11 09:38:09 -0700 2008 | |
| |
lib/ | Thu Sep 11 09:39:58 -0700 2008 |
README.mdown
Boolean datetime attribute
What is boolean attribute?
This plugin allows you to replace boolean columns with datetime columns. For example, you have a User model with the "inactive" boolean column. Why not make it more informative and change that column to "inactive_at"? Now you know when the user was marked inactive. This plugin allows you to do that and still get all of the methods that you would have for a boolean column. It's transparent, you can treat it as a boolean, but it will store it as a date.
How it works
class User < ActiveRecord::Base
boolean_datetime_attribute :inactive_at
end
Copyright (c) 2007 Ben Johnson of Binary Logic, released under the MIT license







