Skip to content

Commit

Permalink
Merge branch 'master' into ozfortress
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminSchaaf committed Sep 12, 2020
2 parents 2f77be3 + 85dc09f commit 2be9e3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/models/league/roster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class Roster < ApplicationRecord
completed = League.statuses[:completed]
includes(division: :league).where(leagues: { status: completed })
}
scope :ordered, -> { order(placement: :asc) }
scope :seeded, -> { order(seeding: :asc) }
scope :ordered, -> { order(placement: :asc, id: :asc) }
scope :seeded, -> { order(seeding: :asc, id: :asc) }

# rubocop:disable Rails/SkipsModelValidations
after_create { League.increment_counter(:rosters_count, league.id) }
Expand Down
3 changes: 2 additions & 1 deletion app/presenters/league/roster/transfer_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def listing_with_implied_user
h 'Left '
end
out += roster.link
out + " in #{transfer.division.name} on #{transfer.created_at.strftime('%c')}"
out += " in #{transfer.division.name}" if roster.approved?
out + " on #{transfer.created_at.strftime('%c')}"
end
end
end
Expand Down

0 comments on commit 2be9e3e

Please sign in to comment.