Skip to content

Commit

Permalink
Favor nested data attributes in README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Workman authored Feb 11, 2025
1 parent 37cf668 commit d117ee2
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 @@ -53,7 +53,7 @@ The `cloudflare_turnstile` view helper simplifies Turnstile implementation by pr

Example usage:
```erb
<%= cloudflare_turnstile('data-callback': 'exampleJsCallback', 'data-error-callback': 'exampleErrorJsCallback') %>
<%= cloudflare_turnstile(data: { callback: 'exampleJsCallback', 'error-callback': 'handleErrorJsCallback' }) %>
```

### Configuration Reference Table
Expand Down

0 comments on commit d117ee2

Please sign in to comment.