mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
15 lines
393 B
Ruby
15 lines
393 B
Ruby
json.setting do
|
|
json.partial! 'api/settings/setting', setting: @setting
|
|
if @show_history
|
|
json.history @setting.history_values do |value|
|
|
json.extract! value, :id, :value, :created_at
|
|
unless value.user_id.nil?
|
|
json.user do
|
|
json.id value.user_id
|
|
json.name "#{value.user.first_name} #{value.user.last_name}"
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|