Skip to content

Commit

Permalink
Remove extra whitespace from README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrunger authored and skryukov committed Aug 26, 2024
1 parent 5f7484a commit 500d272
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,20 @@ Include the Typelizer DSL in your serializers:

```ruby
class ApplicationResource
include Alba::Resource
include Alba::Resource
include Typelizer::DSL
end

class PostResource < ApplicationResource
attributes :id, :title, :body

has_one :author, serializer: AuthorResource
end

class AuthorResource < ApplicationResource
# specify the model to infer types from (optional)
typelize_from User

attributes :id, :name
end
```
Expand Down

0 comments on commit 500d272

Please sign in to comment.