Make Opinio compatible with Rails 4