Skip to content

Commit

Permalink
Added root elements and dict support for preferences response
Browse files Browse the repository at this point in the history
  • Loading branch information
migurski committed Apr 8, 2021
1 parent fd75268 commit b4f81fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 0 additions & 5 deletions app/views/api/user_preferences/_user_preference.json.jbuilder

This file was deleted.

4 changes: 3 additions & 1 deletion app/views/api/user_preferences/index.json.jbuilder
@@ -1 +1,3 @@
json.partial! @user_preferences
json.partial! "api/root_attributes"

json.preferences @user_preferences.map{ |pref| [pref.k, pref.v] }.to_h

0 comments on commit b4f81fa

Please sign in to comment.