def find_preferences(attributes)
        if stored_preferences.loaded?
          stored_preferences.select do |preference|
            attributes.all? {|attribute, value| preference[attribute] == value} 
          end
        else
          stored_preferences.find(:all, :conditions => attributes)
        end
      end
def find_preferences(attributes)
        if stored_preferences.loaded?
          stored_preferences.select do |preference|
            attributes.all? {|attribute, value| preference[attribute] == value} 
          end
        else
          stored_preferences.find(:all, :conditions => attributes)
        end
      end
Finds all stored preferences with the given attributes.  This will do a
 smart lookup by looking at the in-memory collection if it was eager-
 loaded.