David Heinemeier Hansson
8931dd17a9
Prep for RC2
2010-08-23 21:15:48 -05:00
Santiago Pastorino
8235c9288f
type fixed
2010-08-23 01:23:24 +02:00
Neeraj Singh
8f72ddc12b
after_validation should be called irrespective of the result of validation.
...
I confirmed that this is the behavior on 2.3.x .
[5419 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-20 11:24:58 -03:00
Xavier Noria
20088f6fff
deletes the rdoc task of each component, they are no longer published separately
2010-08-20 13:34:28 +02:00
Santiago Pastorino
82eff0ffe9
Bump up rdoc to 2.5.10
2010-08-18 13:55:56 -03:00
Xavier Noria
23303d6ab7
you rarely want ^ or $ in validations, use \A when you mean \A
2010-08-18 00:35:05 +02:00
Trey Bean
017840beb8
Missing object for comparison in ActiveModel::EachValidator example code.
2010-08-18 00:34:46 +02:00
Xavier Noria
5f5c508444
code gardening: we have assert_(nil|blank|present), more concise, with better default failure messages - let's use them
2010-08-17 03:31:39 +02:00
José Valim
f224c66a91
to_key should return all exists keys (if any exists), regardless if the object is persisted or not. If you need it to reflect persistance, you should use to_param.
2010-08-15 11:30:06 -03:00
Subba Rao Pasupuleti
76c91a237c
Adding missing required statement
...
[#5056 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-08-14 06:28:54 -03:00
Santiago Pastorino
3270c58ebb
Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;)
2010-08-14 04:20:06 -03:00
Subba Rao Pasupuleti
fe2d65864e
no callbacks should be created for empty array [ #5289 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-12 13:13:41 -03:00
Subba Rao Pasupuleti
9df227983f
tidy up validations length code [ #5297 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-12 13:13:37 -03:00
Greg Campbell
d03a1249a0
Add missing ActiveModel::Validations require
...
[#5311 state: resolved]
ActiveModel::Validations uses Hash#except, but does not require it from
ActiveSupport. (This wasn't showing up in the tests, because it was
required in the helper, and was also required in
ActiveModel::Serialization).
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-12 13:13:33 -03:00
Paco Guzman
ab68d4b52e
applied guidelines to "# =>"
2010-08-12 17:40:20 +02:00
Xavier Noria
b2eaac24c3
fixes a typo reported by rymai
2010-08-10 15:35:23 +02:00
Adam Meehan
5c109e243f
typo in AM
2010-08-09 12:25:11 +02:00
Xavier Noria
902d732617
Merge remote branch 'docrails/master' into 3-0-stable
2010-08-05 01:15:08 +02:00
Neeraj Singh
589e6977d7
adding documentation to ActiveSupport::Concern ht:strictly typed for an awesome example
...
some minor documentation changes
2010-08-04 17:03:03 -04:00
rohit
8158afa47e
Give extracted options back to args in AMo callbacks. Fixes two failing tests in AR.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-08-04 00:33:23 -03:00
wycats
146a013c42
Fix a couple of mistaken deprecation solutions
2010-08-03 12:50:13 -07:00
wycats
4474470ffd
update this for a change in the core method
2010-08-03 11:49:44 -07:00
wycats
9ae7f04cd6
properly deprecate #{type}_validation_on_#{on}
2010-08-03 11:48:06 -07:00
wycats
1318bf6e33
Properly deprecate validate_on_#{on}
2010-08-03 11:48:06 -07:00
Subba Rao Pasupuleti
5987fd4c79
Tidy up error.rb code
...
[#5288 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-08-03 14:58:53 -03:00
José Valim
3b170b2e14
Freeze options so we raise an error when people modify it in place.
2010-08-03 15:37:35 +02:00
José Valim
79583ca9b1
validates_length_of should not change the options hash in place. [ #5283 state:resolved]
2010-08-03 15:37:26 +02:00
rohit
257e9c4ec4
Failing test for validates_length_of, when both too_short and too_long messages are set [ #5283 state:open]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-03 15:37:17 +02:00
Tore Darell
2c8a4a53a8
Remove or fix non-working examples and add a few tests to Dirty [ #5185 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-03 10:47:30 +02:00
Neeraj Singh
fb2b8fec24
adding test cases for ActiveModel::Errors
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-03 10:46:16 +02:00
Neeraj Singh
74f7e172c7
fixing documentation
2010-08-03 04:14:14 -04:00
Alex Le
aeaab06c79
ActiveModel::Errors json serialization to work as Rails 3b4 [ #5254 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-02 16:26:32 +02:00
Xavier Noria
ccd45618ed
Merge remote branch 'rails/master'
2010-07-30 02:35:24 +02:00
Xavier Noria
755af49755
edit pass to apply API guideline wrt the use of "# =>" in example code
2010-07-30 02:30:04 +02:00
Neeraj Singh
1a6d76223b
expanding on the will_change! method in documentation
2010-07-29 09:18:29 -04:00
David Heinemeier Hansson
856fc4bbc3
Prep for RC
2010-07-26 12:53:25 -05:00
Xavier Noria
6aa1253588
Merge remote branch 'docrails/master'
2010-07-26 00:23:57 +02:00
Aaron Patterson
b50635a59f
update Rakefiles for RDoc 2.5
2010-07-23 21:11:29 +02:00
Santiago Pastorino
b378b19430
Makes Rakefile activate rdoc >= 2.5.9
...
Signed-off-by: Xavier Noria <fxn@hashref.com >
2010-07-23 00:04:06 +02:00
Mislav Marohnić
3e196db6ad
improve Active Model README
...
- fix indentation problems
- revised introductory text to state right away what the library is
- improved examples: reduce heavy usage of ellipsis,
don't mark paragraphs of text as code
2010-07-22 10:03:55 +02:00
Neeraj Singh
aa2235be7b
replacing around with for in the comments for callbacks
2010-07-22 01:28:30 +02:00
Santiago Pastorino
d16c5cc99b
Change some missing README -> README.rdoc
2010-07-22 01:47:06 +08:00
José Valim
53310614d7
Reuse already existing classes for ActiveModel tests.
2010-07-21 13:00:56 +02:00
José Valim
508fba9e07
Add .rdoc extension to README files.
2010-07-21 12:51:14 +02:00
Piotr Sarnacki
6807b08099
Moved a few methods from RecordIdentifier to ActiveModel::Naming
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-21 11:29:58 +02:00
José Valim
b22c11fa53
Add missing entries and tidy up CHANGELOG.
2010-07-19 15:14:26 +02:00
Neeraj Singh
c9630d9d87
adding proper markup to comment
2010-07-16 09:58:01 -04:00
Santiago Pastorino
060ca6abce
Add missing require to use Set
2010-07-11 02:55:47 -03:00
Santiago Pastorino
16c14f7465
Avoid interpreted as grouped expression warnings
2010-07-11 02:55:38 -03:00
José Valim
87f64ef05e
Improve a bit the code in latest commits.
2010-07-08 22:59:41 +02:00