Skip to content

Instantly share code, notes, and snippets.

@cored cored/test.rb Secret
Created Sep 13, 2016

Embed
What would you like to do?
require "virtus"
class Record
include Virtus.model
attribute :name, String, default: ""
end
r = Record.new(name: nil)
puts "it is still nil" if r.name.nil?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.