Skip to content
Latest commit b7e1977 Sep 20, 2007 jonathan git-svn-id:…
…d_defaults@313 20afb1e0-9c0e-0410-9884-91ed27886737


= Active Record Defaults

If you find this plugin useful, please consider a donation to show your support!
  Email address:
== Instructions

Allow you to easily specify default values for attributes on new model objects. Eg:

  class Person < ActiveRecord::Base
    defaults :country => 'New Zealand', :type => 'Unknown', :address => proc { }
    default :last_name do |person|
The default value is only used if the attribute is not present in the attributes hash.

See active_record_defaults.rb for full documentation.
== Installation

  script/plugin install
== Help

Feel free to email with any problems, suggestions, bugs etc...

  jonathan dot viney @ gmail . com
Something went wrong with that request. Please try again.