Compatibility with Rails 4

Its working fine :)