We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f43d62e commit 89b54b5Copy full SHA for 89b54b5
README.md
@@ -47,20 +47,20 @@ Include the Typelizer DSL in your serializers:
47
48
```ruby
49
class ApplicationResource
50
- include Alba::Resource
+ include Alba::Resource
51
include Typelizer::DSL
52
end
53
54
class PostResource < ApplicationResource
55
attributes :id, :title, :body
56
-
+
57
has_one :author, serializer: AuthorResource
58
59
60
class AuthorResource < ApplicationResource
61
# specify the model to infer types from (optional)
62
typelize_from User
63
64
attributes :id, :name
65
66
```
0 commit comments