diff options
author | Yukio Mizuta <untidyhair@gmail.com> | 2014-08-24 14:51:46 -0700 |
---|---|---|
committer | Yukio Mizuta <untidyhair@gmail.com> | 2014-08-25 11:06:06 -0700 |
commit | 097ca3f1f84bb9a2d3cda3f2cce7974a874efdf4 (patch) | |
tree | 559d33feb3567ff0df4fe741892081b694faab78 /activemodel/lib | |
parent | aa58167486a9a084b1e8f5c7def0c19638c31b24 (diff) | |
download | rails-097ca3f1f84bb9a2d3cda3f2cce7974a874efdf4.tar.gz rails-097ca3f1f84bb9a2d3cda3f2cce7974a874efdf4.tar.bz2 rails-097ca3f1f84bb9a2d3cda3f2cce7974a874efdf4.zip |
Use ActiveSupport::Concern instead of the traditinal way
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/model.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/activemodel/lib/active_model/model.rb b/activemodel/lib/active_model/model.rb index 640024eaa1..d51d6ddcc9 100644 --- a/activemodel/lib/active_model/model.rb +++ b/activemodel/lib/active_model/model.rb @@ -56,13 +56,13 @@ module ActiveModel # refer to the specific modules included in <tt>ActiveModel::Model</tt> # (see below). module Model - def self.included(base) #:nodoc: - base.class_eval do - extend ActiveModel::Naming - extend ActiveModel::Translation - include ActiveModel::Validations - include ActiveModel::Conversion - end + extend ActiveSupport::Concern + include ActiveModel::Validations + include ActiveModel::Conversion + + included do + extend ActiveModel::Naming + extend ActiveModel::Translation end # Initializes a new model with the given +params+. |