lucky init
class UserBox < Avram::Box
def self.custom_setup(attrs)
self.new(attrs).create
end
def initialize(attrs)
end
end
UserBox.new("password").create
class UserBox < Avram::Box
def initialize
# ... normal stuff
end
def password(val)
encrypted_password Authentic.generate_encrypted_password(val)
end
end
UserBox.create do |box|
box.password "supersecret"
end
UserBox.create &.password(“super secret”)
works the same but can be a bit more concise
Hi there, I'll just check back in here to say that I successfully defended my dissertation today and should have more time to get back to my old project!
In my projects, I solve the Docker slowness problems on macOS with docker-sync (http://docker-sync.io/). It kind of sucks adding a Ruby dependency to the project but I think it's worth it to bring Docker to the table realistically.