Skip to content

Commit ed8bc53

Browse files
committed
Merge pull request #403 from fluke777/andy_fix
Fixing a typo in getting report definitions
2 parents 14de099 + b54caf6 commit ed8bc53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/gooddata/models/metadata/report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def purge_report_of_unused_definitions!
158158
# @param definition [String | GoodData::ReportDefinition] Report defintion to remove
159159
# @return [GoodData::Report] Returns report with removed definition
160160
def remove_definition(definition)
161-
a_def = GoodData::ReportDefinition(definition, project: project, client: client)
161+
a_def = GoodData::ReportDefinition[definition, project: project, client: client]
162162
def_uri = a_def.uri
163163
content['definitions'] = definition_uris.reject { |x| x == def_uri }
164164
self

0 commit comments

Comments
 (0)