aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorJeremy Kemper <jeremykemper@gmail.com>2014-08-25 15:11:37 -0700
committerJeremy Kemper <jeremykemper@gmail.com>2014-08-25 15:11:37 -0700
commita91f3b1ac97dee6b961ac1fac2b4535b94454948 (patch)
tree698cf8ed9497cdd383da29fc382edb4a6761598d /activemodel
parenta501ae8f032d244779a2c46c104ad07d79fa2586 (diff)
parent097ca3f1f84bb9a2d3cda3f2cce7974a874efdf4 (diff)
downloadrails-a91f3b1ac97dee6b961ac1fac2b4535b94454948.tar.gz
rails-a91f3b1ac97dee6b961ac1fac2b4535b94454948.tar.bz2
rails-a91f3b1ac97dee6b961ac1fac2b4535b94454948.zip
Merge pull request #16682 from untidy-hair/use_activesupport_concern
Use ActiveSupport::Concern
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/model.rb14
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+.