Allow rails 3 or 4

To update to Rails 4 in our app we would need this gem to support Rails 4.