lib/gdshowsdb/models/show.rb in gdshowsdb-1.0.1 vs lib/gdshowsdb/models/show.rb in gdshowsdb-1.0.2

- old
+ new

@@ -18,10 +18,11 @@ show.save show end def self.remove_from(spec) - Show.find_by_uuid(spec[:uuid]).delete + show = Show.find_by_uuid(spec[:uuid]) + show.delete if show end def self.parse_date(readable_date) parsed = readable_date.split('/') date_hash = {year: parsed[0].to_i, month: parsed[1].to_i, day: parsed[2].to_i} \ No newline at end of file