Fixed bug on Rails 3.2.11
Merge pull request #1 from javimey/master

Fixed bug for rails version 3.2.11