Fix API to register compressor Rails 4