OSDN Git Service

fix profiler extend system
[pettanr/pettanr.git] / lib / peta / item.rb
index 6802554..91bee15 100644 (file)
@@ -1,6 +1,7 @@
 module Peta
   class Item < ActiveRecord::Base
     self.abstract_class = true
+    attr :boosters
     
     # Dynamic ClassMethods
     
@@ -75,6 +76,10 @@ module Peta
       self.plural.underscore
     end
     
+    def self.extend_column? column_name
+      self.my_peta.extend_column? column_name
+    end
+    
     def self.visible_count_options
       nil
     end
@@ -170,7 +175,7 @@ module Peta
     end
     
     def extend_column? column_name
-      self.class.my_peta.extend_column? column_name
+      self.class.extend_column? column_name
     end
     
     def supply_default