habitat v0.4.4 Release Notes

Release Date: 2020-06-26 // over 1 year 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 to HabitatSettings for less chance of naming conflicts in your apps. Lastly, this release will now catch your default value if it raises an exception.