David Heinemeier Hansson
|
7d01005514
|
Fixed documentation and prepared for release of 0.12
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-18 20:10:11 +00:00 |
|
David Heinemeier Hansson
|
f46486d37e
|
Added Base.save! that attempts to save the record just like Base.save but will raise a InvalidRecord exception instead of returning false if the record is not valid [After much pestering from Dave Thomas]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-18 19:19:23 +00:00 |
|
David Heinemeier Hansson
|
d5b67ed8d3
|
Added the option to specify the acceptance string in validates_acceptance_of #1106 [caleb@aei-tech.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1188 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-17 10:04:07 +00:00 |
|
David Heinemeier Hansson
|
949294e0f7
|
Cleaned up validates_length_of by calling existing validations on the common stuff #1108 [caleb@aei-tech.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1178 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-17 06:34:13 +00:00 |
|
David Heinemeier Hansson
|
d5cadfc110
|
Address parsing failed when the "to" (or "cc", or whatever) was an array. It was also too restrictive in the formats of the addresses #1097 [Jamis]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-13 04:44:58 +00:00 |
|
David Heinemeier Hansson
|
b55f59e811
|
Added optionally allow for nil or empty strings with validates_numericality_of #801 [Sebastian Kanthak] Fixed problem with using slashes in validates_format_of regular expressions #801 [Sebastian Kanthak]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@910 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-03-14 23:56:47 +00:00 |
|
David Heinemeier Hansson
|
838ae35d63
|
Added validates_numericality_of #716 [skanthak/c.r.mcgrath]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@842 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-03-06 12:43:23 +00:00 |
|
David Heinemeier Hansson
|
4eab375805
|
Finished polishing API docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-02-23 23:51:34 +00:00 |
|
David Heinemeier Hansson
|
dfd43d577e
|
Fixed that when using validation macros with a custom message, if you happened to use single quotes in the message string you would get a parsing error #657 [tonka]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@740 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-02-22 13:54:26 +00:00 |
|
David Heinemeier Hansson
|
5dcbe933df
|
Added validates_each that validates each specified attribute against a block #610 [bitsweat]. Added :allow_nil as an explicit option for validates_length_of, so unless that's set to true having the attribute as nil will also return an error if a range is specified as :within #610 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-02-18 17:27:26 +00:00 |
|
David Heinemeier Hansson
|
0e764a5599
|
Addded validation for validate all the associated objects before declaring failure with validates_associated #618 [Tim Bates]. Added that validates_* now accept blocks to perform validations #618 [Tim Bates]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@650 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-02-17 19:14:15 +00:00 |
|
David Heinemeier Hansson
|
098fa94356
|
Fixed documentation snafus #575, #576, #577, #585
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-02-07 14:15:53 +00:00 |
|
David Heinemeier Hansson
|
256b594a03
|
Fixed documentation #538
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-01-25 11:20:42 +00:00 |
|
David Heinemeier Hansson
|
b40d3c9e62
|
Replaced === checks with is_a? checks #502, #82 [Marcel Molina]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@466 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-01-20 14:40:11 +00:00 |
|
David Heinemeier Hansson
|
51390b8524
|
Added validates_associated that enables validation of objects in an unsaved association #398 [Tim Bates]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@418 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-01-15 17:52:08 +00:00 |
|
David Heinemeier Hansson
|
393e98a859
|
Fixed Base#update_attribute to be indifferent to whether a string or symbol is used to describe the name
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@341 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-01-06 02:36:33 +00:00 |
|
David Heinemeier Hansson
|
d05fa50914
|
Fixed #406 for real
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-01-04 02:03:50 +00:00 |
|
David Heinemeier Hansson
|
f8bc7a4577
|
Fixed that validates_uniqueness_of used 'id' instead of defined primary key #406
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@328 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-01-04 01:23:38 +00:00 |
|
David Heinemeier Hansson
|
256d387159
|
Fixed quoting in validates_format_of that would allow some rules to pass regardless of input #390 [Dmitry V. Sabanin]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@288 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-31 16:42:25 +00:00 |
|
David Heinemeier Hansson
|
ab4c640b96
|
Added scope option to validation_uniqueness #349 [Kent Sibilev]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@259 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-22 23:40:44 +00:00 |
|
David Heinemeier Hansson
|
d834b65b54
|
Added allow_nil options to validates_inclusion_of so that validation is only triggered if the attribute is not nil [what-a-day]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@258 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-22 23:25:45 +00:00 |
|
David Heinemeier Hansson
|
91eaeb2803
|
Fixed that overriding an attribute's accessor would be disregarded by add_on_empty and add_on_boundary_breaking because they simply used the attributes[] hash instead of checking for @base.respond_to?(attr.to_s). [Marten]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@247 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-22 13:27:20 +00:00 |
|
David Heinemeier Hansson
|
58f2bd0cfc
|
Fixed validates_{confirmation,acceptance}_of to only happen when the virtual attributes are not nil #348 [dpiddy@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@241 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-21 23:41:07 +00:00 |
|
David Heinemeier Hansson
|
830c561e71
|
Reworded a few doc things for better comprehension [dblack]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-19 14:17:28 +00:00 |
|
David Heinemeier Hansson
|
0f478181e4
|
Fixed small doc bug [dblack]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@225 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-19 13:59:23 +00:00 |
|
David Heinemeier Hansson
|
2f3db152ec
|
Made the last tweaks before 0.9
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-16 19:43:27 +00:00 |
|
David Heinemeier Hansson
|
f389a8fb5d
|
Updated and added more documentation
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@193 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-16 17:14:41 +00:00 |
|
David Heinemeier Hansson
|
d2b75a083a
|
Added Base.validates_inclusion_of
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@192 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-16 17:00:22 +00:00 |
|
David Heinemeier Hansson
|
6860db61f5
|
Renamed Mixins to Acts to resemble the change from include ActiveRecord::Mixins::List to acts_as_list and renamed @@default_error_messagess to @@default_error_messages
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@190 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-16 16:23:59 +00:00 |
|
David Heinemeier Hansson
|
f296e117c6
|
Added Base.validates_inclusion_of that validates whether the value of the specified attribute is available in a particular enumerable object. [what-a-day]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-16 03:23:06 +00:00 |
|
David Heinemeier Hansson
|
1579f3b45d
|
Added Base.validates_format_of that Validates whether the value of the specified attribute is of the correct form by matching it against the regular expression provided. [Marcel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-16 01:32:35 +00:00 |
|
David Heinemeier Hansson
|
01e9b7c305
|
Added Base.default_error_messages as a hash of all the error messages used in the validates_*_of so they can be changed in one place [Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@173 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-15 22:20:22 +00:00 |
|
David Heinemeier Hansson
|
846a1236bc
|
Added Base.validates_boundries_of that delegates to add_on_boundary_breaking #312 [Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@166 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-15 12:29:08 +00:00 |
|
David Heinemeier Hansson
|
d96e874e0f
|
Insignificante...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-15 11:41:52 +00:00 |
|
David Heinemeier Hansson
|
0bb824b715
|
Changed validate_* to validates_*_of, so validate_acceptance becomes validates_acceptance_of, and added :on as a configuration option instead of using _on_create/update
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-15 01:36:05 +00:00 |
|
David Heinemeier Hansson
|
2c5a2e7f2e
|
Extended no inclusion of messages if theyre nil to base
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@144 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-13 19:25:33 +00:00 |
|
David Heinemeier Hansson
|
c9cc73d0e9
|
Added the possibility of marking fields as being in error without adding a message (using nil) to it thatll get displayed wth full_messages #208 [mjobin]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@135 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-12 19:46:16 +00:00 |
|
David Heinemeier Hansson
|
1da6abaa3c
|
No longer necessary to guard against reincludes with the new reset of inheritance variables
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@127 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-12 16:51:02 +00:00 |
|
David Heinemeier Hansson
|
0c72e6d665
|
Options for the new validation methods are now given as a hash
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@109 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-10 16:46:41 +00:00 |
|
David Heinemeier Hansson
|
aaf9a45ca9
|
Added Base.validate_uniqueness thatv alidates whether the value of the specified attributes are unique across the system. Useful for making sure that only one user can be named "davidhh".
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@108 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-10 16:02:11 +00:00 |
|
David Heinemeier Hansson
|
0b92b7de2f
|
Added Base.validate_presence as an alternative to implementing validate and doing errors.add_on_empty yourself. Added _on_create and _on_update versions for all the new validations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@107 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-10 13:11:13 +00:00 |
|
David Heinemeier Hansson
|
5b983f6f6b
|
Fixed Base.errors to be indifferent as to whether strings or symbols are used.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@98 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-09 15:06:24 +00:00 |
|
David Heinemeier Hansson
|
27ea0b527e
|
Added Base.validate_confirmation that encapsulates the pattern of wanting to validate the acceptance of a terms of service check box (or similar agreement)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@97 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-09 14:37:37 +00:00 |
|
David Heinemeier Hansson
|
d33f814db5
|
Changed the Proc for a string to avoid repetition problems
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@96 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-09 14:04:58 +00:00 |
|
David Heinemeier Hansson
|
a65f791fbd
|
Added Base.validate_confirmation that encapsulates the pattern of wanting to validate a password or email address field with a confirmation.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@95 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-09 13:37:11 +00:00 |
|
David Heinemeier Hansson
|
fc817eff44
|
Added validation macros to make the stackable just like the lifecycle callbacks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@94 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-09 12:50:18 +00:00 |
|
David Heinemeier Hansson
|
db045dbbf6
|
Initial
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-11-24 01:04:44 +00:00 |
|