API v1 config endpoint
This commit is contained in:
parent
110c7cc3e9
commit
9c5a5d9492
4 changed files with 50 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue