<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -171,7 +171,10 @@ module DataMapper
   # @demo spec/integration/repository_spec.rb
   def self.repository(name = nil) # :yields: current_context
     current_repository = if name
-      raise ArgumentError, &quot;First optional argument must be a Symbol, but was #{args.first.inspect}&quot; unless name.is_a?(Symbol)
+      unless name.is_a?(Symbol)
+        raise ArgumentError, &quot;Repository name must be a Symbol, but was #{name.inspect}&quot;
+      end
+
       Repository.context.detect { |r| r.name == name } || Repository.new(name)
     else
       Repository.context.last || Repository.new(Repository.default_name)</diff>
      <filename>lib/dm-core.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>61e7fa5261a30b0579e444ec86213a3722f7cb9f</id>
    </parent>
  </parents>
  <author>
    <name>postmodern</name>
    <email>postmodern.mod3@gmail.com</email>
  </author>
  <url>http://github.com/sam/dm-core/commit/5d57cf68c3b5c386b0faa367d18924e2618682f8</url>
  <id>5d57cf68c3b5c386b0faa367d18924e2618682f8</id>
  <committed-date>2009-01-31T19:28:41-08:00</committed-date>
  <authored-date>2009-01-31T19:28:41-08:00</authored-date>
  <message>Fixed a typo in DataMapper.repository.

* DataMapper.repository no longer receives arbitrary arguments, but an
  optional repository name. If the name is not a Symbol, an
  ArgumentError will be raised, with the name embedded in the exception
  message.</message>
  <tree>28056d3a02b0e18ad4bb52f788701e2773f7eccb</tree>
  <committer>
    <name>postmodern</name>
    <email>postmodern.mod3@gmail.com</email>
  </committer>
</commit>
