Sha256: 4726b8ea82dfaaa79228a1b89fbe3cc0df3eeaa385efc9faae4c65409d3c259a
Contents?: true
Size: 774 Bytes
Versions: 5
Compression:
Stored size: 774 Bytes
Contents
# @deprecated This code is unused / no longer useful. It will be removed no later than release 6.x # This middleware is for use in development mode, when User # is removed/reloaded each request. This makes sure modules # stay loaded. require 'deprecation' class UserAttributesLoader extend Deprecation self.deprecation_horizon = 'hydra-head 5.x' def initialize(app) Deprecation.warn(UserAttributesLoader, "UserAttributesLoader has been deprecated; it will be removed from HydraHead no later than release 6.") @app = app end def call(env) User.class_eval do unless ancestors.include?(Hydra::GenericUserAttributes) include Hydra::GenericUserAttributes end end @app.call(env) end deprecation_deprecate :call end
Version data entries
5 entries across 5 versions & 1 rubygems