Class: Alchemy::Configurations::AdminComponents

Inherits:
Alchemy::Configuration show all
Defined in:
lib/alchemy/configurations/admin_components.rb

Overview

Admin Component Registry

Overridable admin ViewComponents, keyed by role. Extensions can swap a component for their own by assigning a different class name in an initializer:

Alchemy.config.admin_components.element_publish_button =
  "MyEngine::Admin::CustomPublishButton"

Core renders these through the registry instead of referencing the class directly, so the swap takes effect everywhere the component is used.

Method Summary

Methods inherited from Alchemy::Configuration

#==, configuration, defined_configurations, defined_options, defined_values, #fetch, #hash, #initialize, option, #set, #set_from_yaml, #show, #to_h

Constructor Details

This class inherits a constructor from Alchemy::Configuration