diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-05-29 17:03:23 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-29 17:03:23 -0500 |
commit | 669fd84910586d4c791b6f5bf4320f68ac7845aa (patch) | |
tree | ec246bdf6fe6fc61219c59837c4bec07ba19e267 /activerecord/lib | |
parent | c7c35be8fe30b3e29a5d05edae767f7d6a286911 (diff) | |
download | rails-669fd84910586d4c791b6f5bf4320f68ac7845aa.tar.gz rails-669fd84910586d4c791b6f5bf4320f68ac7845aa.tar.bz2 rails-669fd84910586d4c791b6f5bf4320f68ac7845aa.zip |
AS::Concern redefines "include" to lazy include modules as dependencies
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/validations.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index 00557ec702..85b65ecf1a 100644 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -102,8 +102,8 @@ module ActiveRecord module Validations extend ActiveSupport::Concern - depends_on ActiveSupport::Callbacks - depends_on ActiveModel::Validations + include ActiveSupport::Callbacks + include ActiveModel::Validations included do alias_method_chain :save, :validation |