1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-12 23:09:03 +01:00
fab-manager/app/views/api/settings/bulk_update.json.jbuilder

12 lines
265 B
Plaintext
Raw Normal View History

# frozen_string_literal: true
json.settings @settings.each do |setting|
if setting[:errors]
json.error setting.errors.full_messages
json.id setting.id
json.name setting.name
else
json.partial! 'api/settings/setting', setting: setting
end
end