Skip to content

Commit

Permalink
chore: correct syntax to define config attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgz committed Nov 23, 2024
1 parent 8c3c801 commit cd83de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ If you adapter requires additional configuration, you can define a `<adapter cla

```ruby
class MyAdapter::Config < SiteMaps::Configuration
attribute :api_key, String
attribute :api_key, default: -> { ENV["MY_API_KEY"] }
end
```

Expand Down

0 comments on commit cd83de9

Please sign in to comment.