Rails upgrade and Opnlibrary API