问题
In my lib/tasks/data.rake, I have User.make(attributes). The make method appears to create a new record, but I cannot find any docs on this. The make method is not defined by my User model and fyi my User model inherits ActiveRecord::Base.
回答1:
I 'called a friend', it turned out to be https://github.com/notahat/machinist gem
来源:https://stackoverflow.com/questions/14451397/ruby-on-rails-what-is-make-method-on-a-model