aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/aggregations.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/aggregations.rb')
-rw-r--r--activerecord/lib/active_record/aggregations.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/aggregations.rb b/activerecord/lib/active_record/aggregations.rb
index 6824df9b37..0970eaceee 100644
--- a/activerecord/lib/active_record/aggregations.rb
+++ b/activerecord/lib/active_record/aggregations.rb
@@ -1,7 +1,6 @@
module ActiveRecord
module Aggregations # :nodoc:
- def self.append_features(base)
- super
+ def self.included(base)
base.extend(ClassMethods)
end
@@ -128,6 +127,8 @@ module ActiveRecord
reader_method(name, class_name, mapping)
writer_method(name, class_name, mapping)
+
+ create_reflection(:composed_of, part_id, options, self)
end
private