lib/gooddata/models/profile.rb in gooddata-0.6.43 vs lib/gooddata/models/profile.rb in gooddata-0.6.44
- old
+ new
@@ -91,17 +91,17 @@
res.send("#{k}=", v) if ASSIGNABLE_MEMBERS.include? k
end
res
end
- def diff(item_1, item_2)
- x = diff_list([item_1], [item_2])
+ def diff(item1, item2)
+ x = diff_list([item1], [item2])
return {} if x[:changed].empty?
x[:changed].first[:diff]
end
- def diff_list(list_1, list_2)
- GoodData::Helpers.diff(list_1, list_2, key: :login)
+ def diff_list(list1, list2)
+ GoodData::Helpers.diff(list1, list2, key: :login)
end
# Gets user currently logged in
# @return [GoodData::Profile] User currently logged-in
def current