title: Extra arguments for Factory Girl
body: <p>I need to pass extra arguments to factory girl to be used in a callback. Something like this (but more complex really):</p>
  
  <pre><code>Factory.define :blog do |blog|
    blog.name "Blah"
  
    blog.after_create do |blog|
      blog.posts += sample_posts
      blog.save!
    end
  end
  </code></pre>
  
  <p>and then create it with something like this:</p>
  
  <pre><code>Factory.create(:blog, :sample_posts =&gt; [post1, post2])
  </code></pre>
  
  <p>Any ideas how to do it? </p>