brady8/thumbs_up — comment on commit 2ad8cef8e2221f429a43ea8d37eee78d2dfba433
File: lib/acts_as_voteable.rb line 28
By kevinelliott:

This StackOverflow answer recommends casting before the data is passed in (http://stackoverflow.com/questions/1085280/typecasting-a-custom-column-in-rails-activerecord)... Is there a reason the cast is occurring? Is the cast artificially changing a -1 vote value to 0? Or is there no real circumstance where the value needs to be cast?