amazonwebservices/aws-sdk-for-ruby — pull request #17 by dnelson-cs (2011-10-30 04:05:42+00:00)
Title: Domain scope fixed & fleshed out

The second commit in this pull request fixes my previous patch by making the domain scope work like the other scopes (using _with to add a :domain option instead of creating a whole new @domain instance variable). Prior to this fix, the domain scope broke when chained with #where.

The first commit in this pull request may require more discussion and reworking before being approved. It enables setting the domain on an instance, rather than a class, which is necessary for the domain scoped finders to be useful. I describe the approach taken--along with a downside to this approach--in the October 29th comment in the following thread: https://forums.aws.amazon.com/thread.jspa?messageID=288956񆢼.