Compatibility with Rails 4.1 (hackish solution)
Merge pull request #3 from semenyukdmitriy/master

Compatibility with Rails 4.1 (hackish solution)