Merge from vendor branch TNF:
authortaca <taca>
Fri, 16 Dec 2011 12:21:23 +0000 (12:21 +0000)
committertaca <taca>
Fri, 16 Dec 2011 12:21:23 +0000 (12:21 +0000)
commit11c6fd9575a635cd5951fe0729f947f959306791
treed7483f30f7d5b0084e27822a3f7d2ef30af88390
parentc5c26b08ef19000a93af096c8ff9c33190e1faea
parent698d1eeec5bc97825f56b75dde427b53497be9e4
Merge from vendor branch TNF:
Importing devel/ruby-activemodel31 package version 3.1.3.

## Rails 3.1.1 (October 7, 2011) ##

*   Remove hard dependency on bcrypt-ruby to avoid make ActiveModel dependent on a binary library.
    You must add the gem explicitly to your Gemfile if you want use ActiveModel::SecurePassword:

    gem 'bcrypt-ruby', '~> 3.0.0'

    See GH #2687. *Guillermo Iguaran*

## Rails 3.1.0 (August 30, 2011) ##

*   Alternate I18n namespace lookup is no longer supported.
    Instead of "activerecord.models.admins.post", do "activerecord.models.admins/post" instead *José Valim*

*   attr_accessible and friends now accepts :as as option to specify a role *Josh Kalderimis*

*   Add support for proc or lambda as an option for InclusionValidator,
    ExclusionValidator, and FormatValidator *Prem Sichanugrist*

    You can now supply Proc, lambda, or anything that respond to #call in those
    validations, and it will be called with current record as an argument.
    That given proc or lambda must returns an object which respond to #include? for
    InclusionValidator and ExclusionValidator, and returns a regular expression
    object for FormatValidator.

*   Added ActiveModel::SecurePassword to encapsulate dead-simple password usage with BCrypt encryption and salting *DHH*

*   ActiveModel::AttributeMethods allows attributes to be defined on demand *Alexander Uvarov*

*   Add support for selectively enabling/disabling observers *Myron Marston*