<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,5 @@
 class Faq &lt; ActiveRecord::Base
+  unloadable
   set_locking_column :version
 
   belongs_to :category, :class_name =&gt; 'FaqCategory', :foreign_key =&gt; 'category_id'</diff>
      <filename>app/models/faq.rb</filename>
    </modified>
    <modified>
      <diff>@@ -18,7 +18,12 @@
 require 'redmine'
 
 # Patches to the Redmine core. Will not work in development mode
-require_dependency 'attachment_patch'
+require 'dispatcher'
+require 'attachment_patch'
+Dispatcher.to_prepare do
+  Attachment.send(:include, AttachmentPatch)
+end
+
 # Hooks
 require_dependency 'ezfaq_layouts_hook'
 </diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,6 @@
 # This patch is downloaded from his redmine-budget-plugin.
 # http://github.com/edavis10/redmine-budget-plugin/tree/master
 #
-
 require_dependency 'attachment'
 
 # Patches Redmine's Attachments dynamically. Adds a relationship
@@ -15,7 +14,6 @@ module AttachmentPatch
 
     # Same as typing in the class
     base.class_eval do
-      unloadable # Send unloadable so it will not be unloaded in development
       belongs_to :faq
 
     end
@@ -30,6 +28,3 @@ module AttachmentPatch
 
   end
 end
-
-# Add module to Attachment
-Attachment.send(:include, AttachmentPatch)
\ No newline at end of file</diff>
      <filename>lib/attachment_patch.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3f829a36d9419c9f634f31b994ebb5a5fde9f23f</id>
    </parent>
  </parents>
  <author>
    <name>zouchaoqun</name>
    <email>zouchaoqun@gmail.com</email>
  </author>
  <url>http://github.com/zouchaoqun/ezfaq/commit/8a89ee0e958f8ba3cd08884117772c93b9e2064b</url>
  <id>8a89ee0e958f8ba3cd08884117772c93b9e2064b</id>
  <committed-date>2009-06-18T16:18:01-07:00</committed-date>
  <authored-date>2009-06-18T16:18:01-07:00</authored-date>
  <message>refactored redmine patches to run properly under development</message>
  <tree>f6837bef177dae9f0cbaa0d80336b65590a41396</tree>
  <committer>
    <name>zouchaoqun</name>
    <email>zouchaoqun@gmail.com</email>
  </committer>
</commit>
