Module: Roda::RodaPlugins::BeforeHook::InstanceMethods

Defined in:
lib/roda/plugins/_before_hook.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#_roda_run_main_route(r) ⇒ Object

Run internal before hooks before running the main roda route.



25
26
27
28
# File 'lib/roda/plugins/_before_hook.rb', line 25

def _roda_run_main_route(r)
  _roda_before
  super
end

#call(&block) ⇒ Object

Run internal before hooks - Old Dispatch API.



15
16
17
18
19
20
21
# File 'lib/roda/plugins/_before_hook.rb', line 15

def call(&block)
  # RODA4: Remove
  super do
    _roda_before
    instance_exec(@_request, &block) # call Fallback
  end
end