core/lib/rom/plugin_registry.rb
# Return the plugin for a given adapter
#
# @param [Symbol] name The name of the plugin
# @param [Symbol] adapter_name (:default) The name of the adapter used
#
# @raise [UnknownPluginError] if no plugin is found with the given name
#
# @api public
Return the plugin for a given adapter
Return the plugin for a given adapter
def fetch(name, adapter_name = :default)
      adapter(adapter_name).fetch(name) do
        adapter(:default).fetch(name) do
          raise(UnknownPluginError, name)
        end
      end
    end
def fetch ( name , adapter_name = :default ) adapter ( adapter_name ) . fetch ( name ) do adapter ( :default ) . fetch ( name ) do raise ( UnknownPluginError , name ) end end end
Return the plugin for a given adapter
Return the plugin for a given adapter
[UnknownPluginError] if no plugin is found with the given name
[ UnknownPluginError ] if no plugin is found with the given name
name
<not_specific>
adapter_name
<not_specific>
<not_specific>
adapter_name (:default) The name of the adapter used
adapter_name ( : default ) The name of the adapter used
api
None