lib/avo/app.rb in avo-1.4.3 vs lib/avo/app.rb in avo-1.4.4.pre.1
- old
+ new
@@ -4,10 +4,11 @@
class_attribute :cache_store, default: nil
class_attribute :fields, default: []
class_attribute :request, default: nil
class_attribute :context, default: nil
class_attribute :license, default: nil
+ class_attribute :current_user, default: nil
class << self
def boot
init_fields
@@ -18,12 +19,13 @@
else
self.cache_store = Rails.cache
end
end
- def init(request:, context:)
+ def init(request:, context:, current_user:)
self.request = request
self.context = context
+ self.current_user = current_user
self.license = Licensing::LicenseManager.new(Licensing::HQ.new(request).response).license
# Set the current host for ActiveStorage
begin