class Guard::Dsl

def interactor(options)

Parameters:
  • options (Symbol, Hash) -- either `:off` or a Hash with interactor

Other tags:
    Example: Turn off interactions -
    Example: Pass options to the interactor -
def interactor(options)
  # TODO: remove dependency on Interactor (let session handle this)
  case options
  when :off
    Interactor.enabled = false
  when Hash
    Interactor.options = options
  end
end