Support up to Rails 4.2