<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Thu Jun 20 07:24:06 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.couchbase.com/issues/si/jira.issueviews:issue-xml/RCBC-100/RCBC-100.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Couchbase</title>
    <link>http://www.couchbase.com/issues</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.4</version>
        <build-number>845</build-number>
        <build-date>26-12-2012</build-date>
    </build-info>

<item>
            <title>[RCBC-100] Provide proper attribute inheritance when subclassing Couchbase::Model subclasses.</title>
                <link>http://www.couchbase.com/issues/browse/RCBC-100</link>
                <project id="10048" key="RCBC">Couchbase Ruby client library</project>
                        <description>(Pull request to fix this can be found here: &lt;a href=&quot;https://github.com/couchbase/couchbase-ruby-model/pull/2&quot;&gt;https://github.com/couchbase/couchbase-ruby-model/pull/2&lt;/a&gt; )&lt;br/&gt;
&lt;br/&gt;
Currently, Couchbase::Model stores attributes (and views) in a class variable set to a mutable hash. This breaks the expected subclass attribute inheritance behavior that ActiveModel provides.&lt;br/&gt;
&lt;br/&gt;
Example:&lt;br/&gt;
&lt;br/&gt;
class A &amp;lt; Couchbase::Model&lt;br/&gt;
&amp;nbsp;&amp;nbsp;attribute :one&lt;br/&gt;
end&lt;br/&gt;
&lt;br/&gt;
class B &amp;lt; A&lt;br/&gt;
&amp;nbsp;&amp;nbsp;attribute :two&lt;br/&gt;
end&lt;br/&gt;
&lt;br/&gt;
B.attributes #=&amp;gt; {:one =&amp;gt; nil, :two =&amp;gt; nil}&lt;br/&gt;
A.attributes #=&amp;gt; {:one =&amp;gt; nil, :two =&amp;gt; nil}&lt;br/&gt;
B.attributes.object_id == A.attributes.object_id #=&amp;gt; true&lt;br/&gt;
&lt;br/&gt;
This patch enables proper inheritance when ::Rails is present by using Class#class_attribute and detecting subclass additions to attribute:&lt;br/&gt;
&lt;br/&gt;
class A &amp;lt; Couchbase::Model&lt;br/&gt;
&amp;nbsp;&amp;nbsp;attribute :one&lt;br/&gt;
end&lt;br/&gt;
&lt;br/&gt;
class B &amp;lt; A&lt;br/&gt;
&amp;nbsp;&amp;nbsp;attribute :two&lt;br/&gt;
end&lt;br/&gt;
&lt;br/&gt;
A.attributes #=&amp;gt; {:one =&amp;gt; nil}&lt;br/&gt;
B.attributes #=&amp;gt; {:one =&amp;gt; nil, :two =&amp;gt; nil}&lt;br/&gt;
B.attributes.object_id != A.attributes.object_id #=&amp;gt; true</description>
                <environment></environment>
            <key id="21207">RCBC-100</key>
            <summary>Provide proper attribute inheritance when subclassing Couchbase::Model subclasses.</summary>
                <type id="4" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10011">Public</security>
                        <assignee username="avsej">Sergey Avseyev</assignee>
                                <reporter username="mje113">Mike Evans</reporter>
                        <labels>
                    </labels>
                <created>Fri, 7 Dec 2012 11:59:46 -0600</created>
                <updated>Fri, 8 Feb 2013 18:15:13 -0600</updated>
                    <resolved>Fri, 8 Feb 2013 18:12:58 -0600</resolved>
                                                                            <votes>0</votes>
                        <watches>1</watches>
                                                    <comments>
                    <comment id="45741" author="mje113" created="Mon, 10 Dec 2012 13:47:00 -0600"  >Pull request was updated with an improved patch and passing tests.</comment>
                    <comment id="49979" author="avsej" created="Fri, 8 Feb 2013 18:12:58 -0600"  >&lt;a href=&quot;http://review.couchbase.org/23392&quot;&gt;http://review.couchbase.org/23392&lt;/a&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                                                                                                                                                    <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>2845</customfieldvalue>
                </customfieldvalues>
            </customfield>
                                                                                    <customfield id="customfield_10181" key="com.atlassian.jira.ext.charting:timeinstatus">
                <customfieldname>Time In Status</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                </customfields>
    </item>
</channel>
</rss>