Sha256: 4879f31563240aab69e11172c144c05bcc517191fb4680d8c3097b5f108d67fc
Contents?: true
Size: 339 Bytes
Versions: 5
Compression:
Stored size: 339 Bytes
Contents
begin require "mongoid" rescue LoadError raise "Can't find 'mongoid' gem. Please add it to your Gemfile or install it." end module GlassOctopus module Middleware class Mongoid def initialize(app) @app = app end def call(ctx) Mongoid.unit_of_work { @app.call(ctx) } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems