- 16 6月, 2010 3 次提交
-
-
由 Rizwan Reza 提交于
-
由 Rizwan Reza 提交于
-
由 Rizwan Reza 提交于
-
- 11 6月, 2010 1 次提交
-
-
由 Evgeniy Dolzhenko 提交于
-
- 18 5月, 2010 1 次提交
-
-
由 rohit 提交于
Fixed numericality validator in ActiveModel to reject hex numbers for floats completely [#4622 state:commited] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 17 5月, 2010 1 次提交
-
-
由 Jeremy Kemper 提交于
Valid hex strings aren't valid float column values, to match the integer restriction. [#4622 state:resolved]
-
- 16 5月, 2010 2 次提交
-
-
由 José Valim 提交于
Revert "Make ActiveModel::Errors#add_on_blank and #add_on_empty accept an options hash and make various Validators pass their (filtered) options." Having a huge array to whitelist options is not the proper way to handle this case. This means that the ActiveModel::Errors object should know about the options given in *all* validators and break the extensibility added by the validators itself. If the intent is to whitelist options before sending them to I18n, each validator should clean its respective options instead of throwing the responsibility to the Errors object. This reverts commit bc1c8d58.
-
由 Jeroen van Dijk 提交于
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). Original patch by Sven Fuchs, some minor changes and has been changed to be applicable to master again [#4057 state:committed] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 14 5月, 2010 2 次提交
-
-
由 Josh Kalderimis 提交于
-
由 Josh Kalderimis 提交于
-
- 03 5月, 2010 1 次提交
-
-
由 Lawrence Pit 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 29 4月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 25 4月, 2010 1 次提交
-
-
由 reu 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 29 3月, 2010 1 次提交
-
-
由 Jeremy Kemper 提交于
-
- 21 2月, 2010 1 次提交
-
-
由 Prem Sichanugrist 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 17 1月, 2010 2 次提交
-
-
由 José Valim 提交于
-
由 Pratik Naik 提交于
-
- 12 1月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 09 1月, 2010 3 次提交
-
-
由 José Valim 提交于
-
由 José Valim 提交于
validates :email, :presence => true, :format => /@/ validates :genre, :inclusion => %w(m f) validates :password, :length => 6..20
-
由 José Valim 提交于
Compile length validator options still at the class level, so whenever the validator is called, it just needs to check for :maximum, :minimum and :is values.
-
- 08 1月, 2010 2 次提交
-
-
由 José Valim 提交于
-
由 jamie 提交于
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: NJosé Valim <jose.valim@gmail.com>
-
- 23 12月, 2009 5 次提交
-
-
由 José Valim 提交于
-
由 José Valim 提交于
-
由 José Valim 提交于
-
由 José Valim 提交于
Move validations in ActiveModel to validators, however all validatity checks are still in the class method.
-
由 José Valim 提交于
Validator is simply sent to validate method. However, the API needs to change, so validate accepts a record.
-
- 15 9月, 2009 1 次提交
-
-
由 Mike Gunderloy 提交于
-
- 08 9月, 2009 1 次提交
-
-
由 José Valim 提交于
Changed ActiveRecord to use new callbacks and speed up observers by only notifying events that are actually being consumed. Signed-off-by: NJoshua Peek <josh@joshpeek.com>
-
- 01 9月, 2009 1 次提交
-
-
由 Kane 提交于
Signed-off-by: NJoshua Peek <josh@joshpeek.com>
-
- 10 8月, 2009 3 次提交
-
-
由 Pratik Naik 提交于
-
由 Elliot Winkler 提交于
[#430 state:resolved] Example : validates_format_of :subdomain, :without => /www|admin|mail/ Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
由 Jeff Dean 提交于
[#2630 state:committed] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 09 8月, 2009 3 次提交
-
-
由 Adam Keys 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com> Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
由 Pratik Naik 提交于
-
由 jzw 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 09 6月, 2009 1 次提交
-
-
由 Joshua Peek 提交于
-
- 21 3月, 2009 2 次提交
-
-
由 Pratik Naik 提交于
-
由 Pratik Naik 提交于
-