<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -63,14 +63,26 @@ Tag.blueprint do
   name         { Sham.tag }
 end
 
-Event.blueprint do
-  site
-  mode       { 'publish' } # or 'edit', 'comment'
-  title      { Sham.title }
-  body       { Sham.body }
-  created_at { Time.now - 3.days }
-  # These can be nil, depending on the type of comment
-  # author
-  # comment
-  # user 
+Event.class_eval do
+  blueprint do
+    site
+    mode       { 'publish' } # or 'edit', 'comment'
+    title      { Sham.title }
+    body       { Sham.body }
+    created_at { Time.now - 3.days }
+    # These can be nil, depending on the type of comment
+    # author
+    # comment
+    # user 
+  end
+
+  def self.make_from(record)
+    options = {:title =&gt; record.title, :body =&gt; record.body, :site =&gt; record.site, :mode =&gt; Event.mode_from(record)}
+    if record.is_a?(Comment)
+      options.update :article =&gt; record.article, :comment =&gt; record, :author =&gt; record.author
+    else
+      options.update :article =&gt; record, :user =&gt; record.updater || record.user
+    end
+    Event.make(options)
+  end
 end
\ No newline at end of file</diff>
      <filename>spec/blueprints.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8681b6419d3bbe53929dea28ede3d32553944832</id>
    </parent>
  </parents>
  <author>
    <name>rick</name>
    <email>technoweenie@gmail.com</email>
  </author>
  <url>http://github.com/halorgium/mephisto/commit/c28eb75d64aab99c1832df257f3187974017cf32</url>
  <id>c28eb75d64aab99c1832df257f3187974017cf32</id>
  <committed-date>2008-12-20T10:46:04-08:00</committed-date>
  <authored-date>2008-12-20T10:46:04-08:00</authored-date>
  <message>add Event.make_from to the Event blueprint</message>
  <tree>4e7adbb9bc3b0c7380e2a5ee34ffc0236694dbad</tree>
  <committer>
    <name>rick</name>
    <email>technoweenie@gmail.com</email>
  </committer>
</commit>
