You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! This question is mostly because of educational purposes, so not a real issue. Still, the problem is the following. I was looking in a ways to decrease memory consumption and tried to implement conditional loading of this gem and yabeda-prometheus gem based on environment variable. So it look like this:
but all attempts to require these gems manually lead to this error:
require"yabeda/puma/plugin.rb"NoMethodError: undefinedmethod`already_configured?' for Yabeda:Modulefrom /Users/khataev/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/yabeda-0.11.0/lib/yabeda/railtie.rb:7:in `blockin <class:Railtie>'# orrequire "yabeda/prometheus"NoMethodError: undefined method `already_configured?'forYabeda:Modulefrom/Users/khataev/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/yabeda-0.11.0/lib/yabeda/railtie.rb:7:in`block in <class:Railtie>'# or evenrequire "yabeda"NoMethodError: undefined method `already_configured?' forYabeda:Modulefrom/Users/khataev/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/yabeda-0.11.0/lib/yabeda/railtie.rb:7:in `blockin <class:Railtie>'
not sure to understand how everything works when those gems are loaded by bundler, but looks like there is something non-trivial around yabeda gem require (on which those two depend). Can you please explain?
The text was updated successfully, but these errors were encountered:
Hi! This question is mostly because of educational purposes, so not a real issue. Still, the problem is the following. I was looking in a ways to decrease memory consumption and tried to implement conditional loading of this gem and
yabeda-prometheus
gem based on environment variable. So it look like this:Gemfile
config/puma.rb
routes.rb
but all attempts to require these gems manually lead to this error:
not sure to understand how everything works when those gems are loaded by bundler, but looks like there is something non-trivial around
yabeda
gem require (on which those two depend). Can you please explain?The text was updated successfully, but these errors were encountered: