<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Fri May 17 23:56:29 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-85/RCBC-85.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-85] undefined method `default&apos; for Class</title>
                <link>http://www.couchbase.com/issues/browse/RCBC-85</link>
                <project id="10048" key="RCBC">Couchbase Ruby client library</project>
                        <description>When using &amp;#39;save&amp;#39; on an existing and previously saved document, there&amp;#39;s a &amp;#39;undefined method&amp;#39;-error on &amp;#39;default&amp;#39;. &amp;#39;save&amp;#39; and &amp;#39;update&amp;#39; result in the same error.&lt;br/&gt;
&lt;br/&gt;
class TestDoc &amp;lt; Couchbase::Model&lt;br/&gt;
&amp;nbsp;&amp;nbsp;attribute :email, :default =&amp;gt; &amp;#39;&amp;#39;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;attribute :created_at, :default =&amp;gt; lambda { Time.zone.now }&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;view :by_created_at&lt;br/&gt;
end&lt;br/&gt;
&lt;br/&gt;
t = TestDoc.new(:id =&amp;gt; request.session_options[:id])&lt;br/&gt;
t.save&lt;br/&gt;
t = TestDoc.find(request.session_options[:id])&lt;br/&gt;
t.email = &amp;#39;hello&amp;#39;&lt;br/&gt;
t.update(:email =&amp;gt; &amp;#39;blubb&amp;#39;)&lt;br/&gt;
&lt;br/&gt;
undefined method `default&amp;#39; for TestDoc(id, email, created_at):Class&lt;br/&gt;
&lt;br/&gt;
couchbase-model (0.4.0) lib/couchbase/model.rb:487:in `save&amp;#39;&lt;br/&gt;
(eval):4:in `block in save&amp;#39;&lt;br/&gt;
activesupport (3.2.8) lib/active_support/callbacks.rb:403:in `_run__3218406879367123135__save__4511417429032474671__callbacks&amp;#39;&lt;br/&gt;
activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback&amp;#39;&lt;br/&gt;
activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_save_callbacks&amp;#39;&lt;br/&gt;
activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks&amp;#39;&lt;br/&gt;
(eval):3:in `save&amp;#39;&lt;br/&gt;
couchbase-model (0.4.0) lib/couchbase/model.rb:501:in `update&amp;#39;&lt;br/&gt;
(eval):4:in `block in update&amp;#39;&lt;br/&gt;
activesupport (3.2.8) lib/active_support/callbacks.rb:403:in `_run__3218406879367123135__update__4511417429032474671__callbacks&amp;#39;&lt;br/&gt;
activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback&amp;#39;&lt;br/&gt;
activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_update_callbacks&amp;#39;&lt;br/&gt;
activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks&amp;#39;&lt;br/&gt;
(eval):3:in `update&amp;#39;</description>
                <environment>Mac OS 10.8.1&lt;br/&gt;
ruby 1.9.3p194&lt;br/&gt;
Rails 3.2.8</environment>
            <key id="19901">RCBC-85</key>
            <summary>undefined method `default&apos; for Class</summary>
                <type id="1" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/critical.png">Critical</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="Pathe">Patrick</reporter>
                        <labels>
                    </labels>
                <created>Wed, 26 Sep 2012 08:02:24 -0500</created>
                <updated>Tue, 13 Nov 2012 04:24:16 -0600</updated>
                    <resolved>Wed, 26 Sep 2012 11:53:15 -0500</resolved>
                            <version>1.2.0.z.beta</version>
                                                                <votes>0</votes>
                        <watches>0</watches>
                                                    <comments>
                    <comment id="39716" author="avsej" created="Wed, 26 Sep 2012 11:53:15 -0500"  >&lt;a href=&quot;http://review.couchbase.org/21123&quot;&gt;http://review.couchbase.org/21123&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>9587</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>