Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Apr 2, 2013
  1. @arr-ee

    Merge pull request #516 from arr-ee/fix_fields_for_with_has_many_rela…

    arr-ee authored
    …tion
    
    Fixed fields_for with has_many associations [Fixes #504]
  2. @arr-ee

    Merge pull request #520 from arr-ee/override_class_for_uniqueness_val…

    arr-ee authored
    …idator
    
    Added ability to override class name for uniqueness validator
  3. @arr-ee

    Added ability to override class name for uniqueness validator

    arr-ee authored
    Added `:client_validations` option to the `validate_uniqueness_of`,
    where one can specify the real class name for the remote validation.
    
    For example, we have a wrapper class for the User model, UserForm, and
    it uses remote uniqueness validation for the email field.
    
    ```
    class UserForm
      include ActiveRecord::Validations
      attr_accessor :email
      validates_uniqueness_of :email
    end
    ```
    
    However, this won't work since middleware will try to perform validation
    against UserForm, and it's not persisted.
    
    Now one can state which class should be used for validation:
    
    ```
    class UserForm
      include ActiveRecord::Validations
      attr_accessor :email
      validates_uniqueness_of :email, :client_validations => { :class =>
      User }
    end
    ```
Commits on Mar 29, 2013
  1. @arr-ee
Commits on Mar 28, 2013
  1. @arr-ee

    Fixed test

    arr-ee authored
    Kudos to qunit for the excellent error reporting of it
  2. @arr-ee

    Fixed test

    arr-ee authored
  3. @arr-ee
Commits on Feb 18, 2013
  1. @arr-ee
  2. @arr-ee
Commits on Feb 5, 2013
  1. @arr-ee
Commits on Jan 16, 2013
  1. @arr-ee
Something went wrong with that request. Please try again.