mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-05 16:24:21 +01:00
15 lines
404 B
Ruby
15 lines
404 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.invoicing_profile.nil?
|
|
json.user do
|
|
json.id value.invoicing_profile.user_id
|
|
json.name value.invoicing_profile.full_name
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|