class ActiveAdmin::Resource::BelongsTo

def target

Returns the target resource class or raises an exception if it doesn't exist
def target
  resource or raise TargetNotFound.new (@options[:class_name] || @target_name.to_s.camelize), namespace
end