Closed knarz closed 11 years ago
@disphenoid shouldn't the duration field in above model be a Float/Integer instead of String?
duration
In app/uploaders/sound_uploader.rb line 75 the duration is set like so
app/uploaders/sound_uploader.rb
… model.duration = (duration.gsub("\n","").to_f * 1000).round …
which should produce an Integer.
Or am I missing something obvious?
Absolutely right! Changed that on my latest commit.
@disphenoid shouldn't the
duration
field in above model be a Float/Integer instead of String?In
app/uploaders/sound_uploader.rb
line 75 theduration
is set like sowhich should produce an Integer.
Or am I missing something obvious?