Yves Senn
22598ee599
cleanup, removed dispensable require
statements from ActiveModel
2012-11-25 17:08:57 +01:00
Yves Senn
b7edbc718b
cleanup, remove broken whitespace
2012-11-25 16:57:29 +01:00
Francesco Rodriguez
c9a88a2c26
minor edits in AM documentation [ci skip]
2012-10-21 01:26:01 -05:00
John Foley
60c65ca8df
Switch to using include? on validation callbacks
2012-09-23 12:53:50 -06:00
John Foley
d66d6076b2
Fix collisions with before and after validation callbacks.
...
This commit allows a user to do something like:
before_validation :do_stuff, :on => [ :create, :update ]
after_validation :do_more, :on => [ :create, :update ]
2012-09-23 12:53:50 -06:00
Francesco Rodriguez
1ca957c5bb
fix #after_validation example [ci skip]
2012-07-30 10:55:06 -05:00
Francesco Rodriguez
cb6c3e28af
update ActiveModel::Validations::Callbacks documentation [ci skip]
2012-07-29 22:40:37 -05:00
Jan Xie
6e8a1bd0d3
fix ActiveModel::Validations::Callbacks doc
2012-04-15 20:42:58 +08:00
Bogdan Gusiev
7661955634
AS::Callbacks: :skip_after_callbacks_if_terminated option
2012-02-03 17:57:53 +02:00
Rafael Mendonça França
2a663dcf09
Remove Array.wrap call in ActiveModel
2012-01-06 01:04:33 -03:00
Aditya Sanghi
36ee2bafec
fix typo
2011-04-29 09:53:02 +05:30
Aditya Sanghi
bf5cf5db86
:if should not fire on validations when not in context with :on
2011-04-29 02:54:37 +05:30
John Firebaugh
57bc25c5f8
Use run_callbacks; the generated _run_<name>_callbacks method is not a public interface.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-01-31 19:45:53 -02:00
Santiago Pastorino
9992a1a4bf
type fixed
2010-08-22 19:59:36 -03:00
Neeraj Singh
2ffa50f5a9
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:43 -03:00
José Valim
0247995d05
ActiveModel::Validations::Callbacks should not be required by default.
2010-06-19 18:20:02 +02:00
Neeraj Singh
51739d3228
moving before_validation and after_validation functionality from ActiveRecord to ActiveModel
...
[#4653 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-19 17:59:52 +02:00