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
147147end
148148
149149class 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
228228
229229``` rb
230230class 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
323323end
324324
325325class UserRoleEnum < Anchor ::Types ::Enum
326- schema_name " UserRole"
326+ anchor_schema_name " UserRole"
327327
328328 value :admin , " admin"
329329 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.
77## Reporting a Vulnerability
88
99Report 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