Rails 4 appraisal and fix for #113

See #113