# app/avo/base_resource.rb
module Avo
  class BaseResource < Avo::Resources::Base
    def field(id, **args, &block)
      if args[:as] == :textarea
        args[:show_on] = :index
      end

      super(id, **args, &block)
    end
  end
end
```

For more information about extending the base resource, see the Extending Avo::BaseResource documentation.

## Related documentation

- Field components - Learn how to eject and override existing field components
- Ejecting views - Learn how to eject and override existing views
- Extending Avo::BaseResource
- Views - Understanding different view types in Avo

---