lib/models/events/event.rb in spektrix-0.0.2.1 vs lib/models/events/event.rb in spektrix-0.0.2.3
- old
+ new
@@ -6,10 +6,10 @@
collection_path "events"
after_find -> (r) { r.duration = r.duration.to_i.minutes }
def instances
- Instance.where(event_id: self.id).to_a
+ Instance.where(event_id: self.id, all: true).to_a
end
def title
name
end
\ No newline at end of file