-
-
Save cored/265d25d48b98a25f6e33ef289e1a0c8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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