Fix percentage calculation formula
Merge pull request #1908 from javiyu/fix_model_bars

Fix percentage calculation formula
Allowed Rails 4.1 beta 1