Adding Rails 4 support with passing tests