class ViewComponent::Base

def method_missing(method_name, *args) # rubocop:disable Style/MissingRespondToMissing

Other tags:
    Private: -
def method_missing(method_name, *args) # rubocop:disable Style/MissingRespondToMissing
  super
rescue => e # rubocop:disable Style/RescueStandardError
  e.set_backtrace e.backtrace.tap(&:shift)
  raise e, <<~MESSAGE.chomp if view_context && e.is_a?(NameError) && helpers.respond_to?(method_name)
    #{e.message}
    You may be trying to call a method provided as a view helper. Did you mean `helpers.#{method_name}'?
  MESSAGE
  raise
end