API v1 config endpoint

This commit is contained in:
wvengen 2018-10-13 15:18:55 +02:00 committed by wvengen
parent 110c7cc3e9
commit 9c5a5d9492
4 changed files with 50 additions and 0 deletions

View file

@ -180,6 +180,9 @@ class FoodsoftConfig
Hash[keys.map {|k| [k, self[k]]} ]
end
# for using active_model_serializer in the api/v1/configs controller
alias :read_attribute_for_serialization :[]
protected
# @!attribute default_config