开发者

Where i put my module/class in ROR MVC architecture

开发者 https://www.devze.com 2023-01-13 16:04 出处:网络
I have made a module named module ConstantModelName AIRPORT =\"Airport\" end It contains all the constant values used in my application.

I have made a module named

module ConstantModelName
 AIRPORT =  "Airport"
end

It contains all the constant values used in my application.

So where should i place this module in my application.

开发者_如何学编程

currently i placed it in lib folder in my app.

Give your valuable comments.

Thanks


lib folder is the correct place for it

0

精彩评论

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

关注公众号