loading...

Discussion on: Crafting user notifications in Rails with Active Delivery

Collapse
robikovacs profile image
Robert Kovacs

Really loved the article.

I just have a question about how do you organize your files, where do you recommend to place*_delivery.rb & *_driver.rb files in a rails project folder structure?

I'm asking because I have an existing project, with tons of files, and I want to organize them better.

Cheers,
Robi

Collapse
palkan_tula profile image
Vladimir Dementyev Author

I put deliveries under app/deliveries.

Drivers could be stored in different places: somewhere in lib/ folder (if it's a general driver, does not rely on the application code) or in app/services (if it depends on the application itself).