From 097ca3f1f84bb9a2d3cda3f2cce7974a874efdf4 Mon Sep 17 00:00:00 2001 From: Yukio Mizuta Date: Sun, 24 Aug 2014 14:51:46 -0700 Subject: Use ActiveSupport::Concern instead of the traditinal way --- activemodel/lib/active_model/model.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'activemodel/lib/active_model/model.rb') 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 ActiveModel::Model # (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+. -- cgit v1.2.3