<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,7 +8,7 @@ class Factory
       end
 
       def add_to(proxy)
-        value = @block.call(proxy)
+        value = @block.arity.zero? ? @block.call : @block.call(proxy)
         if Factory::Sequence === value
           raise SequenceAbuseError
         end</diff>
      <filename>lib/factory_girl/attribute/dynamic.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b92412a7822cc4c560e611e71a844d4b51574715</id>
    </parent>
  </parents>
  <author>
    <name>Jason Morrison</name>
    <email>jason.p.morrison@gmail.com</email>
  </author>
  <url>http://github.com/technicalpickles/factory_girl/commit/e8ce6b9f261aa69983439a7c761d2215afbd9eb7</url>
  <id>e8ce6b9f261aa69983439a7c761d2215afbd9eb7</id>
  <committed-date>2009-06-16T17:13:58-07:00</committed-date>
  <authored-date>2009-06-16T17:12:39-07:00</authored-date>
  <message>Fixing the first Ruby 1.9 problem with calling a block that has an arity of zero or one

Signed-off-by: Nick Quaranto &lt;nick@quaran.to&gt;</message>
  <tree>32191a85fe073aedd4a040fddd920726d3ed22cc</tree>
  <committer>
    <name>Nick Quaranto</name>
    <email>nick@quaran.to</email>
  </committer>
</commit>
