You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm finding that making a new blueprint for a simple little thing isn't always the nicest way to go about doing things, so some flexibility in how make is used would be nice. MyModel.create allows you to supply a block to futz with attributes, and this functionality seems like a perfect fit for make.
User.make :admin, do |u|
u.password = 'xxxxxx' unless Rails.env.production?
end
etc..
The text was updated successfully, but these errors were encountered:
I'm finding that making a new blueprint for a simple little thing isn't always the nicest way to go about doing things, so some flexibility in how
make
is used would be nice.MyModel.create
allows you to supply a block to futz with attributes, and this functionality seems like a perfect fit formake
.etc..
The text was updated successfully, but these errors were encountered: