disphenoid / tapes.fm

Webapp tapes.fm
http://tapes.fm
0 stars 0 forks source link

Track model, duration field #34

Closed knarz closed 11 years ago

knarz commented 11 years ago

@disphenoid shouldn't the duration field in above model be a Float/Integer instead of String?

In app/uploaders/sound_uploader.rb line 75 the duration is set like so

    …
    model.duration = (duration.gsub("\n","").to_f * 1000).round
    …

which should produce an Integer.

Or am I missing something obvious?

disphenoid commented 11 years ago

Absolutely right! Changed that on my latest commit.