开发者

Where should custom Responders go in a Rails project?

开发者 https://www.devze.com 2023-03-05 13:18 出处:网络
I need to implement a custom Responder under \"Module Responders\", however, I am not sure where 开发者_JS百科such code should live?This is typically what the lib directory is for.

I need to implement a custom Responder under "Module Responders", however, I am not sure where 开发者_JS百科such code should live?


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.


I usually drop them in app/responders

0

精彩评论

暂无评论...
验证码 换一张
取 消