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 | Wed Nov 14 10:50:33 -0800 2007 | [ambethia] |
| |
README | Wed Nov 14 10:50:33 -0800 2007 | [ambethia] |
| |
Rakefile | Wed Nov 14 10:50:33 -0800 2007 | [ambethia] |
| |
init.rb | Wed Nov 14 10:50:33 -0800 2007 | [ambethia] |
| |
lib/ | Wed Nov 14 10:50:33 -0800 2007 | [ambethia] |
| |
test/ | Wed Nov 14 10:50:33 -0800 2007 | [ambethia] |
README
VAoColumn
=========
Allow validates_acceptance_of to store value on a database column of
the same name.
An example use case here, is that you want to use the current version
of the EULA as the :accept value, and store that column, so you can
refer to the explicit version the user accepted at a later date.
Example
=======
ActiveRecord::Schema.define do
create_table :pirates, :force => true do |t|
t.column :catchphrase, :string
end
end
class Pirate < ActiveRecord::Base
validates_acceptance_of(:catchphrase, :accept => "Argh!")
end
"catchphrase" is a normal column method on the model, not just a
virtual accessor.
Copyright (c) 2007 Jason L Perry, released under the MIT license




