Rails3 fix dimension ratings

Using this gem without any dimensions would work, but as our project used dimensions, it broke pretty badly when we switched from Rails 2.3.x to Rails 3.2.13.

Fixed Rails bug compatibility (ha) and found a bug related to dimension max stars. Now dimensions work again!

Hope this helps :zap: