summaryrefslogtreecommitdiff
path: root/lib/scim/kit/v2/schema.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/scim/kit/v2/schema.rb')
-rw-r--r--lib/scim/kit/v2/schema.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scim/kit/v2/schema.rb b/lib/scim/kit/v2/schema.rb
index 0cd6365..64576c4 100644
--- a/lib/scim/kit/v2/schema.rb
+++ b/lib/scim/kit/v2/schema.rb
@@ -21,7 +21,7 @@ module Scim
end
def add_attribute(name:, type: :string)
- attribute = AttributeType.new(name: name, type: type)
+ attribute = AttributeType.new(name: name, type: type, schema: self)
yield attribute if block_given?
attributes << attribute
end