lib/provider/project.rb in ticketmaster-fogbugz-0.2.3 vs lib/provider/project.rb in ticketmaster-fogbugz-0.2.4
- old
+ new
@@ -59,12 +59,10 @@
end
end
def self.find(*options)
if options[0].first.is_a? Array
- self.find_all.select do |project|
- options[0].first.any? { |id| project.id == id }
- end
+ options[0].first.collect { |project_id| self.find_by_id(project_id) }
elsif options[0].first.is_a? Hash
self.find_by_attributes(options[0].first)
else
self.find_all
end