diff --git a/BrainPortal/app/models/tool_config.rb b/BrainPortal/app/models/tool_config.rb index e45dd5399..73b9dd3c9 100644 --- a/BrainPortal/app/models/tool_config.rb +++ b/BrainPortal/app/models/tool_config.rb @@ -593,14 +593,14 @@ def self.register_descriptor(descriptor, tool_name, tool_version) #:nodoc: def self.registered_boutiques_descriptor(tool_name, tool_version) #:nodoc: @_descriptors_ ||= {} key = [ tool_name, tool_version ] # two strings - @_descriptors_[key] + @_descriptors_[key] = @_descriptors_[key]&.reload_if_file_timestamp_changed end def boutiques_descriptor if @_descriptor_ @_descriptor_ = @_descriptor_.reload_if_file_timestamp_changed key = [ self.tool.name, self.version_name ] # two strings - @_descriptors_[key] = @_descriptor_ if @_descriptors_.has_key? key + @_descriptors_[key] = @_descriptor_ return @_descriptor_ end path = boutiques_descriptor_path.presence