Module: Devise::Cloudflare::Turnstile::ControllerConcern::ClassMethods
- Defined in:
- lib/devise/cloudflare/turnstile/controller_concern.rb
Instance Method Summary collapse
-
#skip_turnstile(only: nil, except: nil) ⇒ Object
Disables Turnstile for this controller.
Instance Method Details
#skip_turnstile(only: nil, except: nil) ⇒ Object
Disables Turnstile for this controller.
skip_turnstile # every action
skip_turnstile only: :create # a subset
skip_turnstile except: :new # everything but a subset
23 24 25 26 27 28 |
# File 'lib/devise/cloudflare/turnstile/controller_concern.rb', line 23 def skip_turnstile(only: nil, except: nil) self._turnstile_skip_rules += [{ only: Array(only).map(&:to_s), except: Array(except).map(&:to_s) }] end |