Skip to content

Commit add67d7

Browse files
committed
docs: updates
1 parent 09198d4 commit add67d7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ class ApplicationResource
147147
end
148148

149149
class SomeScope::UserResource < ApplicaionResource
150-
# optional schema_name definition
150+
# optional anchor_schema_name definition
151151
# defaults to part of the string after the last :: (or class name itself if not nested) and removes Resource, in this case User
152-
schema_name "SpecialUser"
152+
anchor_schema_name "SpecialUser"
153153

154154
attribute :name
155155
attribute :role, Anchor::Types::String
@@ -228,7 +228,7 @@ end
228228

229229
```rb
230230
class UserRoleEnum < Anchor::Types::Enum
231-
schema_name "UserRole" # optional, similar logic to Resource but removes Enum
231+
anchor_schema_name "UserRole" # optional, similar logic to Resource but removes Enum
232232

233233
# First argument is the enum member identifier that gets camelized
234234
# Second argument is the value
@@ -323,7 +323,7 @@ class UserResource < ApplicationResource
323323
end
324324

325325
class UserRoleEnum < Anchor::Types::Enum
326-
schema_name "UserRole"
326+
anchor_schema_name "UserRole"
327327

328328
value :admin, "admin"
329329
value :content_creator, "content_creator"

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ Only the latest version is supported.
77
## Reporting a Vulnerability
88

99
Report vulnerabilities on this
10-
[Google form](https://forms.gle/somNBcNWMXrznQ5z6).
10+
[Google form](https://forms.gle/KR9pamNndQ8cGMKy7)

0 commit comments

Comments
 (0)