patch for rails 4

This change allow you to use this gem within rails 4 projects.