How to initialize Ruby class instance variable to a new instance of another class?

后端 未结 0 1398
我在风中等你
我在风中等你 2021-02-08 04:38

I am working on a Ruby on Rails 6 project, and I am trying to use a class instance variable on an ActiveRecord model. Here is a basic example:



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