Mario Zigliotto
Mario Zigliotto

Reputation: 9025

Rails + Delayed Job: Where is the correct place to store custom job classes?

I'm new to delayed_job and i'm starting to write my own "custom jobs". Each custom job is basically just a regular ruby class but i'm not sure where these custom job classes are normally stored within the project's directory structure.

I'm thinking lib, but lib seems to be a junk drawer at this point :/ (maybe that's ok though)

Thanks!!

Upvotes: 21

Views: 3646

Answers (1)

Yuri  Barbashov
Yuri Barbashov

Reputation: 5437

The common way for that is to create jobs folder under app folder. But the only thing you should care about is that they are your files, so do it in a way you find most comfortable for yourself.

Upvotes: 19

Related Questions