Where should custom Responders go in a Rails project?

自古美人都是妖i 提交于 2020-01-04 11:19:02

问题


I need to implement a custom Responder under "Module Responders", however, I am not sure where such code should live?


回答1:


This is typically what the lib directory is for.

Just be sure to update your config/application.rb file to include lib in autoload_paths.




回答2:


I usually drop them in app/responders



来源:https://stackoverflow.com/questions/5995178/where-should-custom-responders-go-in-a-rails-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!