Rails4 changes

See #14.