StaticData
Manage static data in rails application. To using data in yml file.
Installation
Add this line to your application's Gemfile:
gem 'static_data'
And then execute:
$ bundle
Or install it yourself as:
$ gem install static_data
Usage
Run the following generator, it's create static_data.yml in config folder.
rails g static_data:install
Manage your static data in config/static_data.yml
gender:
male: Male
female: Female
numbers:
- one
- two
- three
yes_no:
'yes': 'Yes'
'no': 'No'
Todo
- Improve performance
- Manage large volumes of data
- Localization
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request