Skip to content

Commit

Permalink
player id
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Jun 8, 2024
1 parent ebcbd66 commit 1e6ad1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/player_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def update

def show
id = params[:id]
@track = Track.friendly.find_by(id)
@track = Track.friendly.find_by(id: id)

render status: :ok and return if @track.blank?
# @next_track = next_track(@track.id)
Expand Down
2 changes: 1 addition & 1 deletion app/models/track.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Track < ApplicationRecord
has_many :track_playlists
has_many :playlists, through: :track_playlists
has_many :listening_events
has_many :reposts
has_many :reposts, dependent: :destroy
has_many :purchased_items, as: :purchased_item
has_many :likes, as: :likeable, dependent: :destroy
has_many :comments, as: :commentable, dependent: :destroy
Expand Down

0 comments on commit 1e6ad1b

Please sign in to comment.