Rails 4 support

Very simple changes to make this gem work on Rails 4.