1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/views/api/settings/show.json.jbuilder

15 lines
404 B
Plaintext
Raw Normal View History

2016-03-23 18:39:41 +01:00
json.setting do
json.partial! 'api/settings/setting', setting: @setting
2019-01-14 15:00:33 +01:00
if @show_history
json.history @setting.history_values do |value|
2019-04-18 15:57:56 +02:00
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
2019-01-14 15:00:33 +01:00
end
end
end
2016-03-23 18:39:41 +01:00
end