Extend to Rails 4.0
Merge pull request #1 from elia/patch-1

Extend to Rails 4.0