Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Sep 12, 2012
  1. @woahdae @alindeman

    Support validation contexts when using #errors_on

    woahdae authored alindeman committed
    Previously, Model#errors_on calls Model#valid?, which will both clear
    the errors hash and run validations in the default context. This adds an
    :context option to #errors_on that gets passed to #valid?, allowing using
    errors_on with validation contexts.
    
    Exmaple usage:
    
        class Foo
          validates :name, length: {minimum: 20}, on: :publication
        end
    
        describe Foo
          it 'should have a name greater than 20 characters on publication' do
            subject.name = 'too short'
            subject.name.should have(1).error_on(:name, context: :publication)
          end
        end
Commits on Dec 8, 2011
  1. @dchelimsky

    more rdoc cleanup

    dchelimsky authored
Commits on Nov 22, 2011
  1. @dchelimsky
  2. @dchelimsky

    small rdoc tweak

    dchelimsky authored
Commits on Oct 16, 2011
  1. @dchelimsky

    cleanup and add some rdoc

    dchelimsky authored
Commits on Nov 6, 2010
  1. @dchelimsky

    just ask if AR is defined instead

    dchelimsky authored
    - Closes #254.
  2. @dchelimsky

    Move error[s]_on to ActiveModel::Validations so it can be used by other

    dchelimsky authored
    ActiveModel compliant ORMs
    
    - Closes #251.
Commits on Sep 5, 2010
  1. @dchelimsky

    Use Rails config to determine whether or not we're using AR

    dchelimsky authored
    - defined?(:ActiveRecord) is unreliable
Commits on Jul 24, 2010
  1. @dchelimsky
Commits on Jul 18, 2010
  1. @dchelimsky

    cleanup whitespace

    dchelimsky authored
Commits on May 17, 2010
  1. @dchelimsky
Commits on Apr 28, 2010
  1. @dchelimsky
Something went wrong with that request. Please try again.