Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elcuervo/ohm-default
https://github.com/elcuervo/ohm-default
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/elcuervo/ohm-default
- Owner: elcuervo
- Created: 2014-10-10T00:09:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-10T14:15:12.000Z (over 10 years ago)
- Last Synced: 2024-11-28T23:28:27.871Z (about 1 month ago)
- Language: Ruby
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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::Defaultattribute :name
default :name, "Wolfgang"
end
```