lib/models/tickets/band.rb in spektrix-0.0.1 vs lib/models/tickets/band.rb in spektrix-0.0.2.1

- old
+ new

@@ -5,8 +5,13 @@ collection_path "bands" def to_s self.name end + + # The API doesn't allow you to filter by band_id, so we get all and find() in ruby + def self.find(id) + all.to_a.find {|b| b.id.to_i == id} + end end end end \ No newline at end of file