README.md in invisible_captcha-1.0.1 vs README.md in invisible_captcha-1.1.0

- old
+ new

@@ -53,13 +53,13 @@ class TopicsController < ApplicationController invisible_captcha only: [:create, :update], on_spam: :your_spam_callback_method private - def your_spam_callback_method - redirect_to root_path - end + def your_spam_callback_method + redirect_to root_path + end end ``` Note that it is not mandatory to specify a `honeypot` attribute (neither in the view nor in the controller). In this case, the engine will take a random field from `InvisibleCaptcha.honeypots`. So, if you're integrating it following this path, in your form: @@ -151,9 +151,10 @@ - `scope`: name of scope, ie: 'topic[subtitle]' -> 'topic' is the scope. - `on_spam`: custom callback to be called on spam detection. - `timestamp_enabled`: enable/disable this technique at action level. - `on_timestamp_spam`: custom callback to be called when form submitted too quickly. The default action redirects to `:back` printing a warning in `flash[:error]`. - `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`. ### View helpers options: Using the view/form helper you can override some defaults for the given instance. Actually, it allows to change: