Alan Baird

Results 2 issues of Alan Baird

I have a deeply nested datamodel that at some point has a has_many_through relation with additional datastructures beneath it that need to be copied. This would normally happen in the...

I want to do something like this: ``` ruby class UserModel include Virtus.model attribute(:first, String, default:Faker::Name.first_name ) attribute(:last, String, default: Faker::Name.last_name ) attribute(:email, String, default:lambda{|user, attribute| "#{user.first}.#{user.last}@devmail.company.com"} ) end class...