= ActiveStorage::Service < Object ------------------------------------------------------------------------ = Extended by: ActiveSupport::Autoload (from /home/chedong/.local/share/rdoc) (from /home/chedong/.local/share/rdoc) ------------------------------------------------------------------------ Abstract class serving as an interface for concrete services. The available services are: * Disk, to manage attachments saved directly on the hard drive. * GCS, to manage attachments through Google Cloud Storage. * S3, to manage attachments through Amazon S3. * AzureStorage, to manage attachments through Microsoft Azure Storage. * Mirror, to be able to use several services to manage attachments. Inside a Rails application, you can set-up your services through the generated config/storage.yml file and reference one of the aforementioned constant under the service key. For example: local: service: Disk root: <%= Rails.root.join("storage") %> You can checkout the service's constructor to know which keys are required. Then, in your application's configuration, you can specify the service to use like this: config.active_storage.service = :local If you are using Active Storage outside of a Ruby on Rails application, you can configure the service to use like this: ActiveStorage::Blob.service = ActiveStorage::Service.configure( :Disk, root: Pathname("/foo/bar/storage") ) ------------------------------------------------------------------------ = Class methods: configure = Instance methods: delete delete_prefixed download download_chunk exist? headers_for_direct_upload name open public? update_metadata upload url url_for_direct_upload = Attributes: attr_accessor name
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 00:52 @216.73.217.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)