added formatter for compatibility with rails 4
Merge pull request #19 from tony-kerz/master

rails 4 friendly