active-hash / active_hash

A readonly ActiveRecord-esque base class that lets you use a hash, a Yaml file or a custom file as the datasource
MIT License
1.2k stars 179 forks source link

Set a default key attribute when loading ActiveYaml files #241

Closed adampal closed 2 years ago

adampal commented 2 years ago

Example

default:
  key: default
  id: 1

would now simply be:

default:
  id: 1