阅读背景:

ruby on rails为模型属性更改添加了功能

来源:互联网 

In my rails model, I have a decimal property called employer_wcb. I would like it if, when employer_wcb was changed, a dirty bit was set to true. I'd like to override the employer_wcb setter method. Any way to do so (in particular using metaprogramming)?In my rails model, I have a decimal property ca




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

分享到: