Rails 4 and 4.1 adapters