Trying to upgrade to the 3.0.0 version of the gem from a legacy integration.
Failure/Error: Timber.with_context(user_context, &block)
NoMethodError:
undefined method `with' for Timber::CurrentContext:Class
I'm calling this method in ApplicationController:
def set_user_context(&block)
if !current_user.nil?
user_context = Timber::Contexts::User.new(id: current_user.id)
Timber.with_context(user_context, &block)
else
block.call
end
end
Is this still applicable or has the syntax changed?
Trying to upgrade to the 3.0.0 version of the gem from a legacy integration.
I'm calling this method in ApplicationController:
Is this still applicable or has the syntax changed?