mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
12 lines
279 B
Ruby
12 lines
279 B
Ruby
# frozen_string_literal: true
|
|
|
|
json.settings @settings.each do |setting|
|
|
if setting.errors.count.positive?
|
|
json.error setting.errors.full_messages
|
|
json.id setting.id
|
|
json.name setting.name
|
|
else
|
|
json.partial! 'api/settings/setting', setting: setting
|
|
end
|
|
end
|