From e9e5ad0348b55fb94839205e5c7c6dbb1dbf721f Mon Sep 17 00:00:00 2001 From: Jeremy Rodi Date: Tue, 7 Mar 2017 12:13:06 -0700 Subject: [PATCH] Allow Parent to be Set on AttributeList This allows the parent to be set on the AttributeList. --- lib/mixture/attribute_list.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/mixture/attribute_list.rb b/lib/mixture/attribute_list.rb index df05e29..1bc5c5a 100644 --- a/lib/mixture/attribute_list.rb +++ b/lib/mixture/attribute_list.rb @@ -58,8 +58,11 @@ class AttributeList attr_reader :callbacks # The parent of this attribute list. This is "merged" into this attribute - # list. - attr_reader :parent + # list. This shouldn't be set since it is automatically assumed; however, + # sometimes it can be assumed wrong. + # + # @return [AttributeList, nil] + attr_accessor :parent # Initializes the attribute list. #