habitat v0.4.4 Release Notes
Release Date: 2020-06-26 // over 4 years ago-
๐ This release adds a new
validation
option to your settings.Habitat.create do setting pin : String, validation: :validate\_pin\_formatenddef self.validate\_pin\_format(value : String) value.match(your\_special\_format) || Habitat.raise\_validation\_error("Nope.. try again")end
๐ We have also renamed the
Settings
class toHabitatSettings
for less chance of naming conflicts in your apps. Lastly, this release will now catch your default value if it raises an exception.