Add to_param to the Track model

And update the urls
This commit is contained in:
AEtherC0r3 2017-07-07 00:21:26 +03:00
parent 3685076b4c
commit 6986d4c9db
10 changed files with 33 additions and 27 deletions

View file

@ -39,6 +39,10 @@ class Track < ActiveRecord::Base
false
end
def to_param
short_name
end
private
def generate_guid