1
0
Fork 0
oldhaven/rails/app/models/track.rb

13 lines
227 B
Ruby

class Track < ActiveRecord::Base
set_table_name 'musicbrainz.bh_track'
belongs_to :release
def convertLength
(length /= 1000).round!
end
def clearName
name.gsub('&', 'and').gsub(/[^a-z0-9]/, '').downcase
end
end