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".
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.
尝试将它们放在app/models
目录中。
上一篇: 在Ant中创建一个空的占位符文件集
下一篇: 在Rails中,你在哪里放置清扫器?