Fix new rubocop warnings
This commit is contained in:
parent
97d9e75fe4
commit
b5c778b662
1 changed files with 1 additions and 3 deletions
|
@ -25,9 +25,7 @@ module Api
|
||||||
|
|
||||||
# update the entire set of preferences
|
# update the entire set of preferences
|
||||||
def update_all
|
def update_all
|
||||||
old_preferences = current_user.preferences.each_with_object({}) do |preference, preferences|
|
old_preferences = current_user.preferences.index_by(&:k)
|
||||||
preferences[preference.k] = preference
|
|
||||||
end
|
|
||||||
|
|
||||||
new_preferences = {}
|
new_preferences = {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue