aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-12-24 00:33:05 +0000
committerJon Leighton <j@jonathanleighton.com>2011-12-24 11:08:16 +0000
commit13945b06ccde6979b10fce6fe68312077593f124 (patch)
treedb425433fab71e61da8600b014f7be6f49b54fe8 /activerecord/lib/active_record
parent35202aa6911679cccb8187d12996e3f30661385c (diff)
downloadrails-13945b06ccde6979b10fce6fe68312077593f124.tar.gz
rails-13945b06ccde6979b10fce6fe68312077593f124.tar.bz2
rails-13945b06ccde6979b10fce6fe68312077593f124.zip
Don't include anything else if AR::Model has already been included
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/model.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/model.rb b/activerecord/lib/active_record/model.rb
index e1d3db1aec..4e8ed14fb7 100644
--- a/activerecord/lib/active_record/model.rb
+++ b/activerecord/lib/active_record/model.rb
@@ -6,6 +6,8 @@ module ActiveRecord
end
def self.included(base)
+ return if base < Tag
+
base.class_eval do
include Tag