What is the best way to handle constants in Ruby when using Rails?

前端 未结 0 491
眼角桃花
眼角桃花 2020-12-23 01:02

I have some constants that represent the valid options in one of my model\'s fields. What\'s the best way to handle these constants in Ruby?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题