Sha256: ab26cad870d1749bc3b585e1242b3363fe506b8711fb1df61d860feba0bd23b2
Contents?: true
Size: 508 Bytes
Versions: 38
Compression:
Stored size: 508 Bytes
Contents
module Rodauth module Rails # Middleware that's added to the Rails middleware stack. Normally the main # Roda app could be used directly, but this trick allows the app class to # be reloadable. class Middleware def initialize(app) @app = app end def call(env) app = Rodauth::Rails.app.new(@app) # allow the Rails app to call Rodauth methods that throw :halt catch(:halt) do app.call(env) end end end end end
Version data entries
38 entries across 38 versions & 1 rubygems