Skip to content

Commit

Permalink
Add note about potential scope issue (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxveldink committed May 22, 2023
1 parent b141458 commit 0388e1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ The `invisible_captcha` method accepts some options:
- `timestamp_threshold`: custom threshold per controller/action. Overrides the global value for `InvisibleCaptcha.timestamp_threshold`.
- `prepend`: the spam detection will run in a `prepend_before_action` if `prepend: true`, otherwise will run in a `before_action`.

**NOTE:** If you define a parameter with the same name as your controller and do not define a custom scope, you will see a `TypeError` when processing your action. To fix this error, specify a scope or rename the parameter to a different name than your controller.

### View helpers options:

Using the view/form helper you can override some defaults for the given instance. Actually, it allows to change:
Expand Down

0 comments on commit 0388e1f

Please sign in to comment.