lib/ecoportal/api/internal/person.rb in ecoportal-api-0.1.1 vs lib/ecoportal/api/internal/person.rb in ecoportal-api-0.1.2

- old
+ new

@@ -23,10 +23,10 @@ doc["account"] = value.slice(%w[policy_group_ids landing_page_id permissions_preset permissions_custom preferences prefilter filter_tags 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") + remove_instance_variable("@account") if defined?(@account) return account end private