Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

in Rails where do you put your Sweepers?

Is there a convention in Rails to put Sweeper classes in a particular directory location?

UPDATE: Since observers are put into app/models, I'm assuming sweepers are no different, as long as the name always ends with "sweeper".

like image 486
m33lky Avatar asked Jan 26 '12 19:01

m33lky


1 Answers

I like to put them in the app/sweepers directory.

I also put Presenters in the app/presenters directory...and Observers in the app/observers directory.

like image 114
Gazler Avatar answered Sep 22 '22 05:09

Gazler