Commit 19372a8e76d6629f7f268caaf10da960a36c67e1

Authored by Tallys Martins
1 parent fbdee132

Display layout_template on api

 - Environments and profiles now return the layout template used.

Signed-off-by: Tallys Martins <tallysmartins@gmail.com>
Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
app/api/entities.rb
@@ -124,6 +124,7 @@ module Api @@ -124,6 +124,7 @@ module Api
124 expose :type 124 expose :type
125 expose :custom_header 125 expose :custom_header
126 expose :custom_footer 126 expose :custom_footer
  127 + expose :layout_template
127 expose :permissions do |profile, options| 128 expose :permissions do |profile, options|
128 Entities.permissions_for_entity(profile, options[:current_person], 129 Entities.permissions_for_entity(profile, options[:current_person],
129 :allow_post_content?, :allow_edit?, :allow_destroy?) 130 :allow_post_content?, :allow_edit?, :allow_destroy?)
@@ -264,6 +265,7 @@ module Api @@ -264,6 +265,7 @@ module Api
264 expose :name 265 expose :name
265 expose :id 266 expose :id
266 expose :description 267 expose :description
  268 + expose :layout_template
267 expose :settings, if: lambda { |instance, options| options[:is_admin] } 269 expose :settings, if: lambda { |instance, options| options[:is_admin] }
268 end 270 end
269 271