diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-06-16 11:30:37 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-19 17:59:52 +0200 |
commit | 51739d3228d12907d60fb1b0a2b1ef96c55f66a3 (patch) | |
tree | 428364caab82ea2cfd5f320f5074bf3646b332a2 /activerecord/lib/active_record/base.rb | |
parent | 312f43324159fbcd8749cd331ed7d6500a714a83 (diff) | |
download | rails-51739d3228d12907d60fb1b0a2b1ef96c55f66a3.tar.gz rails-51739d3228d12907d60fb1b0a2b1ef96c55f66a3.tar.bz2 rails-51739d3228d12907d60fb1b0a2b1ef96c55f66a3.zip |
moving before_validation and after_validation functionality from ActiveRecord to ActiveModel
[#4653 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index def0fdaa2f..ef8dbdb6e5 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1874,6 +1874,7 @@ module ActiveRecord #:nodoc: extend ActiveSupport::DescendantsTracker include ActiveModel::Conversion + include ActiveModel::Validations::Callbacks include Validations extend CounterCache include Locking::Optimistic, Locking::Pessimistic |