Method: GoodData::Project.get_ldm_layout

Defined in:
lib/gooddata/models/project.rb

.get_ldm_layout(from_project) ⇒ Object



276
277
278
279
280
281
# File 'lib/gooddata/models/project.rb', line 276

def get_ldm_layout(from_project)
  GoodData::LdmLayout.get(:client => from_project.client, :project => from_project)
rescue StandardError => e
  GoodData.logger.warn "An unexpected error when get ldm layout. Error: #{e.message}"
  GoodData::LdmLayout::DEFAULT_EMPTY_LDM_LAYOUT
end