avatar

19

bg fix

by abloke, 01 Feb, 2007 04:15 PM
18 19  
4343   # options are :culprit, :referenced, :activity_loggable, :limit
4444   def self.find_with(options={})
4545     limit = (options.delete(:limit) || 10)
46     conditions = build_sql_conditional_for(options)
46     conditions = self.build_sql_conditional_for(options)
4747     self.find(:all, :conditions => conditions, :limit => limit)
4848   # rescue
4949   #   raise "I couldn't run the find with the options you gave me, sorry"