lib/ecoportal/api/internal/person.rb in ecoportal-api-0.4.3 vs lib/ecoportal/api/internal/person.rb in ecoportal-api-0.5.0

- old
+ new

@@ -23,13 +23,10 @@ when NilClass doc["account"] = nil when Internal::Account doc["account"] = JSON.parse(value.to_json) when Hash - # TODO: - # => missing send_invites - # => better use an Internal::Account::PROPERTIES const for this kind of stuff - doc["account"] = value.slice(%w[policy_group_ids landing_page_id permissions_preset permissions_custom preferences prefilter filter_tags login_provider_ids starred_ids]) + doc["account"] = value.slice(*%w[policy_group_ids landing_page_id permissions_preset permissions_custom preferences prefilter login_provider_ids starred_ids]) else # TODO raise "Invalid set on account: Need nil, Account or Hash; got #{value.class}" end remove_instance_variable("@account") if defined?(@account)