Skip to content

Commit

Permalink
Placate rubocop.
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairtarget committed Mar 4, 2019
1 parent b441132 commit 5369858
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/line.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ def line_type
def self.of_line_type(line_type)
if line_type == "train"
Line.where(system_type: [TRAM_SYSTEM_TYPE, METRO_SYSTEM_TYPE])
.or(Line.where(vehicle_type: ["tram", "metro"]))
.order(:name)
.or(Line.where(vehicle_type: ["tram", "metro"]))
.order(:name)
elsif line_type == "bus"
Line.where(system_type: BUS_SYSTEM_TYPE)
.or(Line.where(vehicle_type: "bus"))
.order(:name)
.or(Line.where(vehicle_type: "bus"))
.order(:name)
else
Line.order(:name)
end
Expand Down

0 comments on commit 5369858

Please sign in to comment.