<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,21 +8,22 @@ module PreferenceFu
   end
   
   module ClassMethods
-        
+    
     def has_preferences(*options)
       alias_method_chain :initialize, :preferences
       
       class_eval do
         class &lt;&lt; self
           alias_method_chain :instantiate, :preferences
+          attr_accessor :preference_options
         end
       end
       
       config = { :column =&gt; 'preferences' }
       
-      idx = 0; @@preference_options = {}
+      idx = 0; self.preference_options = {}
       options.each do |pref|
-        @@preference_options[2**idx] = { :key =&gt; pref.to_sym, :default =&gt; false }
+        self.preference_options[2**idx] = { :key =&gt; pref.to_sym, :default =&gt; false }
         idx += 1
       end
       
@@ -44,10 +45,6 @@ module PreferenceFu
       end
     end
     
-    def preference_options
-      @@preference_options
-    end
-    
     def instantiate_with_preferences(*args)
       record = instantiate_without_preferences(*args)
       record.prefs</diff>
      <filename>lib/preference_fu.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7c1c0e3e07aa706f422a4ec3aeb3fe1104f4d080</id>
    </parent>
  </parents>
  <author>
    <name>Martin Karlsch</name>
    <email>martin@karlsch.com</email>
  </author>
  <url>http://github.com/brennandunn/preference_fu/commit/c47a0693b9915db24ea1901260a99ab050dbd1a9</url>
  <id>c47a0693b9915db24ea1901260a99ab050dbd1a9</id>
  <committed-date>2008-04-08T15:57:20-07:00</committed-date>
  <authored-date>2008-04-08T15:57:20-07:00</authored-date>
  <message>- fixed a class_variable bug, which prevented using preference_fu in more then one model at the same time</message>
  <tree>d4f738a4223c91e68a4296252449e18271b08379</tree>
  <committer>
    <name>Martin Karlsch</name>
    <email>martin@karlsch.com</email>
  </committer>
</commit>
