diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-13 02:42:22 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-13 02:42:22 +0100 |
commit | 2939e9898b1e0e7da6db802a00e594be4c85499d (patch) | |
tree | 17f57c3ca48df41c8460336bc225149030c45756 /app/controllers | |
parent | ca50ceeaf0e4195cf8a80da9fd226d97dbe14b7c (diff) |
Extend rails-settings-cached to merge db-saved hash values with defaults
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/api/v1/accounts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/accounts_controller.rb b/app/controllers/api/v1/accounts_controller.rb index 05ff806c5..bd52dfb2c 100644 --- a/app/controllers/api/v1/accounts_controller.rb +++ b/app/controllers/api/v1/accounts_controller.rb @@ -96,7 +96,7 @@ class Api::V1::AccountsController < ApiController limit = params[:limit] ? [DEFAULT_ACCOUNTS_LIMIT, params[:limit].to_i].min : DEFAULT_ACCOUNTS_LIMIT @accounts = SearchService.new.call(params[:q], limit, params[:resolve] == 'true') - set_account_counters_maps(@accounts) + set_account_counters_maps(@accounts) unless @accounts.nil? render action: :index end |