lib/gooddata/models/profile.rb in gooddata-0.6.19 vs lib/gooddata/models/profile.rb in gooddata-0.6.20
- old
+ new
@@ -77,11 +77,11 @@
res.save!
res
end
def create_object(attributes)
- json = EMPTY_OBJECT.deep_dup
+ json = GoodData::Helpers.deep_dup(EMPTY_OBJECT)
json['accountSetting']['links']['self'] = attributes[:uri] if attributes[:uri]
res = client.create(GoodData::Profile, json)
attributes.each do |k, v|
res.send("#{k}=", v) if ASSIGNABLE_MEMBERS.include? k
@@ -391,10 +391,10 @@
@dirty = true
@json['accountSetting']['authenticationModes'] = modes.map { |x| x.to_s.upcase }
end
def to_hash
- tmp = content.merge(uri: uri).symbolize_keys
+ tmp = GoodData::Helpers.symbolize_keys(content.merge(uri: uri))
[
[:companyName, :company],
[:phoneNumber, :phone],
[:firstName, :first_name],
[:lastName, :last_name],