阅读背景:

RoR中模型的通用标志

来源:互联网 

I am making a Ruby on Rails app and am realizing that my User class could potentially end up with a lot of generic boolean / integer attributes. For example, suppose I have a promotion each quarter, and I only want a person to be able to use the promotion once. Then I'd have to make a new column each quarter has_used_promotion_N to track that promotion.I am making a Ruby on Rails app and am realizin




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: