Sha256: d4740202ba89d520401a4253b4e263c8a386e94bfcc8c0aaca9633ed0a488d63
Contents?: true
Size: 757 Bytes
Versions: 10
Compression:
Stored size: 757 Bytes
Contents
module Avo module InitializesAvo def init_app Avo::Current.license = Avo::Licensing::NullLicense.new Avo::Current.context = context Avo::Current.current_user = _current_user Avo::Current.view_context = view_context Avo::Current.app = Avo::App.build request: request, context: context, current_user: _current_user, view_context: view_context Avo::Current.app.init Avo::Current.license = Licensing::LicenseManager.new(Licensing::HQ.new(request).response).license Avo.plugin_manager.init_plugins @license = Avo::App.license end def _current_user instance_eval(&Avo.configuration.current_user) end def context instance_eval(&Avo.configuration.context) end end end
Version data entries
10 entries across 10 versions & 1 rubygems