ruby-on-railsconventionconvention-over-configur

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".


Solution

  • 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.