Sha256: dd8ef82063121edd372041c897855d7d3edd28aadaa86b1439b55f88d41f800d
Contents?: true
Size: 431 Bytes
Versions: 31
Compression:
Stored size: 431 Bytes
Contents
# This middleware is for use in development mode, when User # is removed/reloaded each request. This makes sure modules # stay loaded. class UserAttributesLoader def initialize(app) @app = app end def call(env) User.class_eval do unless ancestors.include?(Hydra::GenericUserAttributes) include Hydra::GenericUserAttributes end end @app.call(env) end end
Version data entries
31 entries across 31 versions & 1 rubygems