Skip to content
This repository

Feb 04, 2010

  1. David Heinemeier Hansson

    Move to 3.0.0.beta

    dhh authored

Jan 31, 2010

  1. Mikel Lindsaar

    Full update on ActiveModel documentation

    mikel authored
  2. Joshua Peek

    Axe AM state machine

    We're going do it eventually, get it done before 3.0 is final.
    josh authored

Jan 30, 2010

  1. José Valim

    Drop AR I18n deprecation and simple use errors.messages as fallback.

    josevalim authored

Jan 20, 2010

  1. Stop overriding LoadError.new to return a MissingSourceError (and som…

    …etimes nil!)
    Yehuda Katz authored

Jan 17, 2010

  1. Sam Elliott

    Adding Proc support to validation messages so that they can become a …

    …little more dynamic, allowing for customisations during the request [#3514 status:resolved].
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
    lenary authored josevalim committed
  2. José Valim

    Validates needs hash slice.

    josevalim authored

Jan 16, 2010

  1. Pratik

    Merge docrails

    lifo authored

Jan 11, 2010

  1. José Valim

    Fix typos and add tests to ensure they will be caught the next time.

    josevalim authored

Jan 08, 2010

  1. José Valim

    Fix typo by renaming :genre to :gender.

    josevalim authored
  2. José Valim

    Allow validates to map some types to specific options. So now you can…

    … do:
    
      validates :email, :presence => true, :format => /@/
      validates :genre, :inclusion => %w(m f)
      validates :password, :length => 6..20
    josevalim authored
  3. José Valim

    Compile length validator options still at the class level, so wheneve…

    …r the validator is called, it just needs to check for :maximum, :minimum and :is values.
    josevalim authored

Jan 07, 2010

  1. José Valim

    Allow :if, :unless, :on, :allow_nil and :allow_blank as shared option…

    …s in validates.
    josevalim authored
  2. Add validates method as shortcut to setup validators for a given set …

    …of attributes:
    
    class Person < ActiveRecord::Base
      include MyValidators
    
      validates :name, :presence => true, :uniqueness => true, :length => { :maximum => 100 }
      validates :email, :presence => true, :email => true
    end
    
    [#3058 status:resolved]
    
    Signed-off-by: José Valim <jose.valim@gmail.com>
    jamie authored josevalim committed
  3. José Valim

    Allow to specify default attributes names translation in I18n yml files.

    For example, you could easily specify :created_at and :updated_at translations as:
    
      en:
        attributes:
          created_at: "Created at"
          updated_at: "Updated at"
    
    This configuration is built on ActiveModel, so it means those translations are
    shared between different ORMs as well (but always as a fallback).
    josevalim authored
  4. José Valim

    Errors messages are now moved from :activerecord.errors to simply :er…

    …rors on I18n yml files.
    josevalim authored

Jan 04, 2010

  1. Joshua Peek

    Autoload AS test case

    josh authored
  2. David Heinemeier Hansson

    Merge

    dhh authored
  3. David Heinemeier Hansson

    Change the ActiveModel::Base.include_root_in_json default to true for…

    … Rails 3 [DHH]
    dhh authored

Jan 03, 2010

  1. José Valim

    Add missing tests to Validators.

    josevalim authored

Jan 02, 2010

  1. José Valim

    Add naming to AMo::Lint

    josevalim authored
  2. José Valim

    Use activerecord.errors.format as in Rails 2.3.5.

    josevalim authored
  3. José Valim

    Be sure to convert namespaced names to we have 'Parrots name' instead…

    … of 'Parrots.name' in error messages.
    josevalim authored

Jan 01, 2010

  1. Jeremy Kemper

    Ruby 1.9.2: explicit coercion check no longer needed; bug fixed upstream

    jeremy authored

Dec 31, 2009

  1. Some railties cleanup:

    	* Rename <framework>/rails.rb -> <framework>/railtie.rb
    	* Rails::Plugin -> Rails::Railtie
    	* Rails::Plugin::Vendored -> Rails::Plugin
    Carl Lerche authored
  2. Rename rails.rb -> rails/all.rb and rails/core.rb -> rails.rb

    Carl Lerche authored
  3. Add a /rails.rb for each framework for consistency

    Carl Lerche authored

Dec 29, 2009

  1. José Valim

    Move ActiveRecord callbacks implementation to ActiveModel and make us…

    …e of it.
    
    Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
    josevalim authored Yehuda Katz committed

Dec 28, 2009

  1. Jeremy Kemper

    Merge commit 'josevalim/validations'

    jeremy authored

Dec 23, 2009

  1. José Valim

    No need to use ValidationsRepairHelper hack on ActiveModel anymore, M…

    …odel.reset_callbacks(:validate) is enough. However, tests in ActiveRecord are still coupled, so moved ValidationsRepairHelper back there.
    josevalim authored
  2. José Valim

    Small clean up in Naming and TTranslation tests.

    josevalim authored
  3. José Valim

    ActiveRecord::Validations are now built on top of Validator as well.

    josevalim authored
  4. José Valim

    validates_each uses a BlockValidator.

    josevalim authored
  5. José Valim

    Added check_validity! to EachValidator and refactor existing ones.

    josevalim authored

Dec 22, 2009

  1. Joshua Peek

    All AMo modules are safe to defer

    josh authored
Something went wrong with that request. Please try again.