Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Apr 12, 2013
  1. @senny
Commits on Mar 30, 2013
  1. @carlosantoniodasilva

    Improve changelog entry for ActiveModel::Errors#full_messages_for [ci…

    carlosantoniodasilva committed
    … skip]
    Add a working example of how to use this new method.
Commits on Mar 24, 2013
  1. @shockone
Commits on Mar 23, 2013
  1. @prathamesh-sonpatki
Commits on Mar 19, 2013
  1. @wangjohn

    The repair_validations helper was not working correctly before because

    wangjohn committed
    it only cleared the validations that created :validate callbacks. This
    didn't include the validates created by validates_with, so I've added a
    method to clear all validations.
Commits on Mar 15, 2013
  1. @vipulnsward

    Small typos here and there.

    vipulnsward committed
Commits on Mar 9, 2013
  1. @carlosantoniodasilva
Commits on Mar 4, 2013
  1. @senny

    `has_secure_password` is not invalid when assigning empty Strings.

    senny committed
    Closes #9535.
    With 692b3b6 the `password=` setter does no longer set blank passwords.
    This triggered validation errors when assigning empty Strings to `password`
    and `password_confirmation`.
    This patch only sets the confirmation if it is not `blank?`.
  2. @senny
Commits on Feb 26, 2013
  1. @rafaelfranca


    rafaelfranca committed
Commits on Feb 25, 2013
  1. @dhh

    Preparing for 4.0.0.beta1 release

    dhh committed
Commits on Feb 24, 2013
  1. @fxn
Commits on Dec 26, 2012
  1. @rafaelfranca
  2. @rafaelfranca

    Add CHANGELOG entry for #8622

    rafaelfranca committed
Commits on Dec 21, 2012
  1. @rafaelfranca
Commits on Dec 20, 2012
  1. @carlosantoniodasilva

    Fix Action Mailer changelog indenation to match other changelogs

    carlosantoniodasilva committed
    Also some minor improvements to other changelogs. [ci skip]
  2. @carlosantoniodasilva
Commits on Dec 15, 2012
  1. @robotex82 @steveklabnik

    Add `ActiveModel::Validations::AbsenceValidator`, a validator to chec…

    robotex82 committed with steveklabnik
    …k the absence of attributes.
    Add `ActiveModel::Errors#add_on_present` method. Adds error messages to present attributes.
Commits on Dec 14, 2012
  1. @carlosantoniodasilva
Commits on Dec 1, 2012
  1. @rmascarenhas

    Reset attributes should not report changes.

    rmascarenhas committed
    When resetting an attribute, you expect it to return to the state it was
    before any changes. Namely, this fixes this unexpected behavior:
    ~~~ruby = "Bob"
    model.name_changed? #=> true
Commits on Nov 29, 2012
  1. @rafaelfranca
Commits on Nov 28, 2012
  1. @steveklabnik

    Specify type of singular association during serialization

    steveklabnik committed
    When serialising a class, specify the type of any singular associations, if
    necessary. Rails already correctly specifies the :type of any enumerable
    association (e.g. a has_many association), but made no attempt to do so for
    non-enumerables (e.g. a has_one association).
    We must specify the :type of any STI association. A has_one
    association to a class which uses single-table inheritance is an example of
    this type of association.
    Fixes #7471
Commits on Nov 26, 2012
  1. @rafaelfranca

    Merge pull request #7282 from xHire/validates_length_of_fix

    rafaelfranca committed
    Length validation handles correctly nil. Fix #7180
  2. @xHire

    Length validation handles correctly nil. Fix #7180

    xHire committed
    When nil or empty string are not allowed, they are not valid.
Commits on Nov 25, 2012
  1. @senny
Commits on Nov 14, 2012
  1. @trevorturk
Commits on Oct 18, 2012
  1. @mrbrdo
Commits on Oct 3, 2012
  1. @rafaelfranca

    Revert "Merge pull request #7826 from sikachu/master-validators-kind"

    rafaelfranca committed
    This reverts commit 4e9f53f, reversing
    changes made to 6b802cd.
    Revert "Don't use tap in this case."
    This reverts commit 454d820.
    Reason: Is not a good idea to add options to this method since we can do
    the same thing using method composition.
        Person.validators_on(:name).select { |v| v.kind == :presence }
    Also it avoids to change the method again to add more options.
  2. @sikachu

    Make `.validators_on` accept `:kind` option

    sikachu committed
    This will filter out the validators on a particular attribute based on
    its kind.
Commits on Sep 19, 2012
  1. @guilleiguaran
Commits on Sep 7, 2012
  1. @carlosantoniodasilva

    Update Active Model xml serialization test to reflect a change in bui…

    carlosantoniodasilva committed
    Due to a change in builder, nil values and empty strings now generates
    closed tags, so instead of this:
        <pseudonyms nil=\"true\"></pseudonyms>
    It generates this:
        <pseudonyms nil=\"true\"/>
    Document this change in Rails so that people can track it down easily if
Commits on Aug 28, 2012
  1. @fxn

    CHANGELOGs are now per branch

    fxn committed
    Changes in old branches needed to be manually synched in CHANGELOGs of newer ones.
    This has proven to be brittle, sometimes one just forgets this manual step.
    With this commit we switch to CHANGELOGs per branch. When a new major version is
    cut from master, the CHANGELOGs in master start being blank.
    A link to the CHANGELOG of the previous branch allows anyone interested to
    follow the history.
Commits on Aug 24, 2012
  1. @sobrinho
Commits on Aug 16, 2012
  1. @rafaelfranca

    Merge pull request #7024 from bogdan/strict_validation_custom_exception

    rafaelfranca committed
    AM::Validation#validates: custom exception for :strict option
Commits on Aug 14, 2012
  1. @anthonyalberto

    Following the false issue reporting I did here : #6958

    anthonyalberto committed
    - Enable propagation of :skip_types, :dasherize and :camelize on included models by default
    - Adding the option to override this propagation on a per-include basis (:include => { :model => { :dasherize => false } }
    - Enough tests to prove it works
    - Updated activemodel
    Squashed my commits
Something went wrong with that request. Please try again.