<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer">85</assigned-user-id>
  <attachments-count type="integer">1</attachments-count>
  <closed type="boolean">false</closed>
  <created-at type="datetime">2009-02-25T10:25:07+00:00</created-at>
  <creator-id type="integer">5639</creator-id>
  <milestone-due-on type="datetime" nil="true"></milestone-due-on>
  <milestone-id type="integer">9903</milestone-id>
  <number type="integer">2069</number>
  <permalink>namespacing-for-activeresource</permalink>
  <priority type="integer">1262</priority>
  <project-id type="integer">8994</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>open</state>
  <tag>activeresource patch verified</tag>
  <title>Namespacing for activeresource</title>
  <updated-at type="datetime">2009-05-19T23:16:48+01:00</updated-at>
  <user-id type="integer">5639</user-id>
  <user-name>Bart ten Brinke</user-name>
  <creator-name>Bart ten Brinke</creator-name>
  <assigned-user-name>Jeremy Kemper</assigned-user-name>
  <url>http://rails.lighthouseapp.com/projects/8994/tickets/2069</url>
  <milestone-title>2.x</milestone-title>
  <original-body>If you have an Client object in your Rails app and you want to use ActiveResource to get Clients from another application, then these Client objects have to have exactly the same attributes or ActiveResource will break. Because in a real world situation a lot of people call models in their application by the same name, sometimes you do not want ActiveResource to assume this behaviour.

To fix this I added this namespace patch. When a namespace is defined, the ActiveResource resourcename will not be Client, but NameSpaceClient. This will make ActiveResource fall back to it's default 'unknown source' behaviour, making it possible to get remote resources with the same name.</original-body>
  <latest-body>If you have an Client object in your Rails app and you want to use ActiveResource to get Clients from another application, then these Client objects have to have exactly the same attributes or ActiveResource will break. Because in a real world situation a lot of people call models in their application by the same name, sometimes you do not want ActiveResource to assume this behaviour.

To fix this I added this namespace patch. When a namespace is defined, the ActiveResource resourcename will not be Client, but NameSpaceClient. This will make ActiveResource fall back to it's default 'unknown source' behaviour, making it possible to get remote resources with the same name.</latest-body>
  <original-body-html>&lt;div&gt;&lt;p&gt;If you have an Client object in your Rails app and you want to
use ActiveResource to get Clients from another application, then
these Client objects have to have exactly the same attributes or
ActiveResource will break. Because in a real world situation a lot
of people call models in their application by the same name,
sometimes you do not want ActiveResource to assume this
behaviour.&lt;/p&gt;
&lt;p&gt;To fix this I added this namespace patch. When a namespace is
defined, the ActiveResource resourcename will not be Client, but
NameSpaceClient. This will make ActiveResource fall back to it's
default 'unknown source' behaviour, making it possible to get
remote resources with the same name.&lt;/p&gt;&lt;/div&gt;</original-body-html>
  <versions type="array">
    <version type="Ticket::Version">
      <assigned-user-id type="integer">85</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>If you have an Client object in your Rails app and you want to use ActiveResource to get Clients from another application, then these Client objects have to have exactly the same attributes or ActiveResource will break. Because in a real world situation a lot of people call models in their application by the same name, sometimes you do not want ActiveResource to assume this behaviour.

To fix this I added this namespace patch. When a namespace is defined, the ActiveResource resourcename will not be Client, but NameSpaceClient. This will make ActiveResource fall back to it's default 'unknown source' behaviour, making it possible to get remote resources with the same name.</body>
      <body-html>&lt;div&gt;&lt;p&gt;If you have an Client object in your Rails app and you want to
use ActiveResource to get Clients from another application, then
these Client objects have to have exactly the same attributes or
ActiveResource will break. Because in a real world situation a lot
of people call models in their application by the same name,
sometimes you do not want ActiveResource to assume this
behaviour.&lt;/p&gt;
&lt;p&gt;To fix this I added this namespace patch. When a namespace is
defined, the ActiveResource resourcename will not be Client, but
NameSpaceClient. This will make ActiveResource fall back to it's
default 'unknown source' behaviour, making it possible to get
remote resources with the same name.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-02-25T10:25:07+00:00</created-at>
      <creator-id type="integer">5639</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">2069</number>
      <permalink>namespacing-for-activeresource</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>new</state>
      <tag>activeresource class name namespacing</tag>
      <title>Namespacing for activeresource</title>
      <updated-at type="datetime">2009-02-25T10:25:12+00:00</updated-at>
      <user-id type="integer">5639</user-id>
      <user-name>Bart ten Brinke</user-name>
      <creator-name>Bart ten Brinke</creator-name>
      <assigned-user-name>Jeremy Kemper</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/2069</url>
      <milestone-title>2.x</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">85</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>Great! +1</body>
      <body-html>&lt;div&gt;&lt;p&gt;Great! +1&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-02-25T15:28:41+00:00</created-at>
      <creator-id type="integer">5639</creator-id>
      <diffable-attributes type="yaml">--- 
:tag: activeresource class name namespacing
</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">2069</number>
      <permalink>namespacing-for-activeresource</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>new</state>
      <tag>activeresource patch</tag>
      <title>Namespacing for activeresource</title>
      <updated-at type="datetime">2009-02-25T15:28:44+00:00</updated-at>
      <user-id type="integer">19965</user-id>
      <user-name>Jos&#233; Valim</user-name>
      <creator-name>Bart ten Brinke</creator-name>
      <assigned-user-name>Jeremy Kemper</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/2069</url>
      <milestone-title>2.x</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">85</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>+1</body>
      <body-html>&lt;div&gt;&lt;p&gt;+1&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-02-27T15:13:18+00:00</created-at>
      <creator-id type="integer">5639</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">2069</number>
      <permalink>namespacing-for-activeresource</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>new</state>
      <tag>activeresource patch</tag>
      <title>Namespacing for activeresource</title>
      <updated-at type="datetime">2009-02-27T15:13:20+00:00</updated-at>
      <user-id type="integer">13339</user-id>
      <user-name>Federico Builes</user-name>
      <creator-name>Bart ten Brinke</creator-name>
      <assigned-user-name>Jeremy Kemper</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/2069</url>
      <milestone-title>2.x</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">85</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>It would be really nice if this went in 2.3, together with the XML parser upgrades. It would really make activeresource usable for a lot of people.</body>
      <body-html>&lt;div&gt;&lt;p&gt;It would be really nice if this went in 2.3, together with the
XML parser upgrades. It would really make activeresource usable for
a lot of people.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-03-10T19:11:35+00:00</created-at>
      <creator-id type="integer">5639</creator-id>
      <diffable-attributes type="yaml">--- 
:tag: activeresource patch
</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">2069</number>
      <permalink>namespacing-for-activeresource</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>new</state>
      <tag>activeresource patch verified</tag>
      <title>Namespacing for activeresource</title>
      <updated-at type="datetime">2009-03-10T19:12:14+00:00</updated-at>
      <user-id type="integer">5639</user-id>
      <user-name>Bart ten Brinke</user-name>
      <creator-name>Bart ten Brinke</creator-name>
      <assigned-user-name>Jeremy Kemper</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/2069</url>
      <milestone-title>2.x</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">85</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>Bump?</body>
      <body-html>&lt;div&gt;&lt;p&gt;Bump?&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-05-19T21:19:57+01:00</created-at>
      <creator-id type="integer">5639</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">2069</number>
      <permalink>namespacing-for-activeresource</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>new</state>
      <tag>activeresource patch verified</tag>
      <title>Namespacing for activeresource</title>
      <updated-at type="datetime">2009-05-19T21:20:02+01:00</updated-at>
      <user-id type="integer">5639</user-id>
      <user-name>Bart ten Brinke</user-name>
      <creator-name>Bart ten Brinke</creator-name>
      <assigned-user-name>Jeremy Kemper</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/2069</url>
      <milestone-title>2.x</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">85</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>Good idea, but the 'namespace' name is too generic.

How about localizing the unknown-constant lookup to a single method that subclasses can override to implement whatever behavior they like.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Good idea, but the 'namespace' name is too generic.&lt;/p&gt;
&lt;p&gt;How about localizing the unknown-constant lookup to a single
method that subclasses can override to implement whatever behavior
they like.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-05-19T22:03:07+01:00</created-at>
      <creator-id type="integer">5639</creator-id>
      <diffable-attributes type="yaml">--- 
:state: new
</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">2069</number>
      <permalink>namespacing-for-activeresource</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>open</state>
      <tag>activeresource patch verified</tag>
      <title>Namespacing for activeresource</title>
      <updated-at type="datetime">2009-05-19T22:03:13+01:00</updated-at>
      <user-id type="integer">85</user-id>
      <user-name>Jeremy Kemper</user-name>
      <creator-name>Bart ten Brinke</creator-name>
      <assigned-user-name>Jeremy Kemper</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/2069</url>
      <milestone-title>2.x</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">85</assigned-user-id>
      <attachments-count type="integer">1</attachments-count>
      <body>Have you got a better suggestion then namespace? Localizing the unkown constant lookup via a method missing is pretty much what is happening in AR right now. Refactoring that is a good idea but goes a lot further then this patch :)</body>
      <body-html>&lt;div&gt;&lt;p&gt;Have you got a better suggestion then namespace? Localizing the
unkown constant lookup via a method missing is pretty much what is
happening in AR right now. Refactoring that is a good idea but goes
a lot further then this patch :)&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-05-19T23:16:46+01:00</created-at>
      <creator-id type="integer">5639</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer">9903</milestone-id>
      <number type="integer">2069</number>
      <permalink>namespacing-for-activeresource</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">8994</project-id>
      <state>open</state>
      <tag>activeresource patch verified</tag>
      <title>Namespacing for activeresource</title>
      <updated-at type="datetime">2009-05-19T23:16:48+01:00</updated-at>
      <user-id type="integer">5639</user-id>
      <user-name>Bart ten Brinke</user-name>
      <creator-name>Bart ten Brinke</creator-name>
      <assigned-user-name>Jeremy Kemper</assigned-user-name>
      <url>http://rails.lighthouseapp.com/projects/8994/tickets/2069</url>
      <milestone-title>2.x</milestone-title>
    </version>
  </versions>
  <attachments type="array">
    <attachment type="Attachment">
      <code>22d6bcc7b6ae55ccd9c9726ee2e6139a7620bee5</code>
      <content-type>text/plain</content-type>
      <created-at type="datetime">2009-02-25T10:25:08+00:00</created-at>
      <filename>name_spacing_active_resource.diff</filename>
      <height type="integer" nil="true"></height>
      <id type="integer">92713</id>
      <size type="integer">4145</size>
      <uploader-id type="integer">5639</uploader-id>
      <width type="integer" nil="true"></width>
      <url>http://rails.lighthouseapp.com/attachments/92713/name_spacing_active_resource.diff</url>
    </attachment>
  </attachments>
</ticket>
