Sha256: dd2b89784d21b06f7f54f70179e9c9e38c83a391c1ccb2a930f7992e3241c594
Contents?: true
Size: 843 Bytes
Versions: 2
Compression:
Stored size: 843 Bytes
Contents
module Avo module InitializesAvo def init_app Avo::Current.license = Avo::Licensing::NilLicense.new Avo::Current.context = context Avo::Current.user = _current_user Avo::Current.view_context = view_context Avo.init Avo::Current.license = Licensing::LicenseManager.new(Licensing::HQ.new(request).response).license # Output a warning in the logs if the license is invalid if Avo::Current.license.invalid? Avo.logger.debug "Your Avo license looks invalid. Please troubleshoot it using the directions here: https://docs.avohq.io/3.0/license-troubleshooting.html" end Avo::Current.locale = locale end def _current_user instance_eval(&Avo.configuration.current_user) end def context instance_eval(&Avo.configuration.context) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
avo-3.16.4 | app/controllers/concerns/avo/initializes_avo.rb |
avo-3.16.3 | app/controllers/concerns/avo/initializes_avo.rb |