Added root elements and dict support for preferences response
This commit is contained in:
parent
fd7526857b
commit
143a90fcac
2 changed files with 3 additions and 6 deletions
|
@ -1,5 +0,0 @@
|
|||
attrs = {
|
||||
user_preference.k => user_preference.v
|
||||
}
|
||||
|
||||
json.preference(attrs)
|
|
@ -1 +1,3 @@
|
|||
json.partial! @user_preferences
|
||||
json.partial! "api/root_attributes"
|
||||
|
||||
json.preferences @user_preferences.map { |pref| [pref.k, pref.v] }.to_h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue