lib/gooddata/models/profile.rb in gooddata-0.6.50 vs lib/gooddata/models/profile.rb in gooddata-0.6.51

- old
+ new

@@ -58,10 +58,10 @@ # @return GoodData::Profile User Profile def [](id, opts = { client: GoodData.connection }) return id if id.instance_of?(GoodData::Profile) || id.respond_to?(:profile?) && id.profile? if id.to_s !~ %r{^(\/gdc\/account\/profile\/)?[a-zA-Z\d]+$} - fail(ArgumentError, 'wrong type of argument. Should be either project ID or path') + fail(ArgumentError, 'wrong type of argument. Should be either profile ID or path') end id = id.match(/[a-zA-Z\d]+$/)[0] if id =~ %r{/} c = client(opts)