File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -147,9 +147,9 @@ class ApplicationResource
147
147
end
148
148
149
149
class SomeScope ::UserResource < ApplicaionResource
150
- # optional schema_name definition
150
+ # optional anchor_schema_name definition
151
151
# 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"
153
153
154
154
attribute :name
155
155
attribute :role , Anchor ::Types ::String
228
228
229
229
``` rb
230
230
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
232
232
233
233
# First argument is the enum member identifier that gets camelized
234
234
# Second argument is the value
@@ -323,7 +323,7 @@ class UserResource < ApplicationResource
323
323
end
324
324
325
325
class UserRoleEnum < Anchor ::Types ::Enum
326
- schema_name " UserRole"
326
+ anchor_schema_name " UserRole"
327
327
328
328
value :admin , " admin"
329
329
value :content_creator , " content_creator"
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ Only the latest version is supported.
7
7
## Reporting a Vulnerability
8
8
9
9
Report vulnerabilities on this
10
- [ Google form] ( https://forms.gle/somNBcNWMXrznQ5z6 ) .
10
+ [ Google form] ( https://forms.gle/KR9pamNndQ8cGMKy7 )
You can’t perform that action at this time.
0 commit comments