Using question mark character in Rails/ActiveRecord column name

前端 未结 3 345
长情又很酷
长情又很酷 2021-02-01 01:45

In keeping with Ruby\'s idiom of using a question mark in boolean methods (e.g. person.is_smart?), I\'d like to do the same for an ActiveRecord field in Rails:

3条回答
提交回复
热议问题