Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/elcuervo/ohm-default


https://github.com/elcuervo/ohm-default

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Ohm::Default

Adds the ability to set default values to an Ohm Model

```bash
gem install ohm-default
```

```ruby
class Model < Ohm::Model
include Ohm::Default

attribute :name
default :name, "Wolfgang"
end
```