Sha256: b788c8de9da2cd87af59d5bc24bcf5911af335853f8d946631d4788672403997
Contents?: true
Size: 576 Bytes
Versions: 1
Compression:
Stored size: 576 Bytes
Contents
module Avo module InitializesAvo def init_app Avo::Current.license = Avo::Licensing::NilLicense.new Avo::Current.context = context Avo::Current.current_user = _current_user Avo::Current.view_context = view_context Avo.init Avo::Current.license = Licensing::LicenseManager.new(Licensing::HQ.new(request).response).license Avo.plugin_manager.init_plugins end def _current_user instance_eval(&Avo.configuration.current_user) end def context instance_eval(&Avo.configuration.context) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
avo-3.0.0.pre14 | app/controllers/concerns/avo/initializes_avo.rb |