method

fetch

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: Registry
fetch(name) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/lib/active_storage/service/registry.rb, line 10
    def fetch(name)
      services.fetch(name.to_sym) do |key|
        if configurations.include?(key)
          services[key] = configurator.build(key)
        else
          if block_given?
            yield key
          else
            raise KeyError, "Missing configuration for the #{key} Active Storage service. "                "Configurations available for the #{configurations.keys.to_sentence} services."
          end
        end
      end
    end
Register or log in to add new notes.