In a normal rails app, if I have a model named MyModel an instance of it can be created via
MyModel.new(attributes)
If MyModel inherits from ActiveRecord::Base, how can I override the "new" method?
In a normal rails app, if I have a model named MyModel an instance of it can be created via
MyModel.new(attributes)
If MyModel inherits from ActiveRecord::Base, how can I override the "new" method?
上一篇:SOAP WSDL error
湖南美食有哪些??:下一篇
精彩评论