class ViewComponent::Base

def config

Returns:
  • (ActiveSupport::OrderedOptions) -
def config
  module_parents.each do |m|
    config = m.try(:config).try(:view_component)
    return config if config
  end
  ViewComponent::Config.current
end