lib/contrast/components/inventory.rb in contrast-agent-3.11.0 vs lib/contrast/components/inventory.rb in contrast-agent-3.12.0

- old
+ new

@@ -9,12 +9,16 @@ # parent_configuration_spec.yaml. # Specifically, this allows for querying the state of the Inventory # product. class Interface include Contrast::Components::ComponentBase + include Contrast::Components::Interface + access_component :config + def enabled? - state.inventory_enabled? + @_enabled = !false?(CONFIG.root.inventory.enable) if @_enabled.nil? + @_enabled end end COMPONENT_INTERFACE = Interface.new end