lib/gtfs/realtime/shape.rb in gtfs-realtime-0.3.0 vs lib/gtfs/realtime/shape.rb in gtfs-realtime-0.4.0

- old
+ new

@@ -1,14 +1,7 @@ module GTFS class Realtime class Shape < GTFS::Realtime::Model - dataset_module do - def ordered_by_sequence - order(:sequence) - end - end - - # order results by sequence by default - set_dataset(self.ordered_by_sequence) + scope :ordered, -> { order(sequence: :ASC) } end end end \ No newline at end of file