Using delayed_job with class methods

A bit of context before going to the solution... I was trying to call a bulk insertion of some objects in the database in a Rails app hosted in Heroku, taking data from an user uploaded CSV file and processing it via find_or_create_by for each row, updating…

A basic Rails API with OAuth2

Link: https://github.com/mrmans0n/oauth2-doorkeeper-for-api I’ve prepared (mostly for myself) a GitHub repo with a pretty basic Rails project featuring Bootstrap and Devise authentication for the backend, and OAuth2 with Doorkeeper for the API. The API is prepared for versioning and has a pretty basic example for its…

Solving problems with rails-api and wrap_parameters

In the 0.0.3 version of rails-api this issue is closed, but for previously generated code that doesn’t work anymore you have to do it manually. The crash I’m referring to is this one, that just happened to me while updating my gems in BikeShare heroku app:…