Support Rails 4.2. Closes #2