Go to file
Jeroen van Dijk 26392c4ac5 Make ActiveModel::Errors#add_on_blank and #add_on_empty accept an options hash and make various Validators pass their (filtered) options.
This makes it possible to pass additional options through Validators to message generation. E.g. plugin authors want to add validates_presence_of :foo, :format => "some format".

Also, cleanup the :default vs :message options confusion in ActiveModel validation message generation.

Also, deprecate ActiveModel::Errors#add_on_blank(attributes, custom_message) in favor of ActiveModel::Errors#add_on_blank(attributes, options).

Also, refactoring of ActiveModel and ActiveRecord Validation tests. Test are a lot more DRY now. Better test coverage as well now.

The first four points were reapplied from an older patch of Sven Fuchs which didn't apply cleanly anymore and was not complete yet.

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-21 11:55:21 +02:00
actionmailer Merge remote branch 'rails/master' 2010-06-20 23:13:19 +02:00
actionpack Merge remote branch 'rails/master' 2010-06-20 23:13:19 +02:00
activemodel Make ActiveModel::Errors#add_on_blank and #add_on_empty accept an options hash and make various Validators pass their (filtered) options. 2010-06-21 11:55:21 +02:00
activerecord Make ActiveModel::Errors#add_on_blank and #add_on_empty accept an options hash and make various Validators pass their (filtered) options. 2010-06-21 11:55:21 +02:00
activeresource Merge remote branch 'rails/master' 2010-06-20 23:13:19 +02:00
activesupport Initialize @last_update_at in file_update_checker to hide warnings in AS test suite. 2010-06-21 11:10:19 +02:00
bin add missing shebang to rails bin. LH [#4885 state:resolved] 2010-06-19 00:54:42 -07:00
ci edit pass: the names of Rails components have a space, ie, "Active Record", not "ActiveRecord" 2010-06-14 23:22:04 +02:00
doc/template migrates the Jamis template to RDoc 2.x, the root Rakefile requires RDoc 2.2 2010-06-16 04:06:20 +02:00
railties Changed ruby /path/to/rails myapp --dev to ruby /path/to/rails new myapp --dev in the "Thor is not avalable" message. [#4915 state:resolved] 2010-06-21 11:10:25 +02:00
tools Ensure require and load are private - h/t apeiros 2010-04-24 10:38:41 -07:00
.gitignore Ignore generated railties RDocs [#4289 state:resolved] 2010-03-28 22:45:29 -07:00
Gemfile removes the documentation group from the Gemfile, thus making RDoc 2.2 required in dev machines 2010-06-16 19:28:23 +02:00
load_paths.rb Bust gem prelude to ensure bundler's in the load path. Not sure what's broken here. 2010-03-27 12:06:27 -07:00
RAILS_VERSION Get ready for beta 4 2010-06-08 14:47:02 -04:00
rails.gemspec Update bundler dependency 2010-06-08 18:10:18 -04:00
Rakefile pdoc tasks publishe APIs in api.rubyonrails.org 2010-06-16 22:39:13 +02:00
release.rb Simple release script 2010-04-13 12:26:15 -07:00
version.rb Update versions (otherwise you install a gem from source as beta3 but internally it's beta2) and update CHANGELOG. 2010-04-10 12:17:34 +02:00