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

docs: Fix the example to work #220

Closed tbotaq closed 3 years ago

tbotaq commented 3 years ago

Hi.

The following code of ActiveFile::Base.full_path shows that the first dot of file extension is not needed when a programmer overrides ActiveFile::Base.extension. https://github.com/zilkey/active_hash/blob/1a07f3ea7b4920f35843010cc515be8c8695e612/lib/active_file/base.rb#L36

So I'm removing the first dot from the example code to go with the implementation of ActiveFile::Base.full_path.