Module: ActiveStorage

Extended by:
ActiveSupport::Autoload
Defined in:
activestorage/lib/active_storage.rb,
activestorage/lib/active_storage/engine.rb,
activestorage/lib/active_storage/errors.rb,
activestorage/lib/active_storage/service.rb,
activestorage/lib/active_storage/version.rb,
activestorage/lib/active_storage/analyzer.rb,
activestorage/lib/active_storage/attached.rb,
activestorage/lib/active_storage/previewer.rb,
activestorage/lib/active_storage/deprecator.rb,
activestorage/lib/active_storage/downloader.rb,
activestorage/lib/active_storage/reflection.rb,
activestorage/lib/active_storage/fixture_set.rb,
activestorage/lib/active_storage/gem_version.rb,
activestorage/lib/active_storage/attached/one.rb,
activestorage/lib/active_storage/attached/many.rb,
activestorage/lib/active_storage/attached/model.rb,
activestorage/lib/active_storage/log_subscriber.rb,
activestorage/lib/active_storage/attached/changes.rb,
activestorage/lib/active_storage/service/registry.rb,
activestorage/lib/active_storage/service/s3_service.rb,
activestorage/lib/active_storage/service/gcs_service.rb,
activestorage/lib/active_storage/service/configurator.rb,
activestorage/lib/active_storage/service/disk_service.rb,
activestorage/lib/active_storage/analyzer/null_analyzer.rb,
activestorage/lib/active_storage/service/mirror_service.rb,
activestorage/lib/active_storage/analyzer/audio_analyzer.rb,
activestorage/lib/active_storage/analyzer/image_analyzer.rb,
activestorage/lib/active_storage/analyzer/video_analyzer.rb,
activestorage/lib/active_storage/transformers/transformer.rb,
activestorage/lib/active_storage/previewer/mupdf_previewer.rb,
activestorage/lib/active_storage/previewer/video_previewer.rb,
activestorage/lib/active_storage/attached/changes/purge_one.rb,
activestorage/lib/active_storage/attached/changes/create_one.rb,
activestorage/lib/active_storage/attached/changes/delete_one.rb,
activestorage/lib/active_storage/attached/changes/detach_one.rb,
activestorage/lib/active_storage/attached/changes/purge_many.rb,
activestorage/lib/active_storage/analyzer/image_analyzer/vips.rb,
activestorage/lib/active_storage/attached/changes/create_many.rb,
activestorage/lib/active_storage/attached/changes/delete_many.rb,
activestorage/lib/active_storage/attached/changes/detach_many.rb,
activestorage/lib/active_storage/service/azure_storage_service.rb,
activestorage/lib/active_storage/previewer/poppler_pdf_previewer.rb,
activestorage/lib/active_storage/attached/changes/create_one_of_many.rb,
activestorage/lib/active_storage/analyzer/image_analyzer/image_magick.rb,
activestorage/lib/active_storage/transformers/image_processing_transformer.rb

Overview

:markup: markdown :include: activestorage/README.md

Defined Under Namespace

Modules: FileServer, Reflection, SetBlob, SetCurrent, Streaming, Transformers, VERSION Classes: AnalyzeJob, Analyzer, Attached, Attachment, BaseController, BaseJob, Blob, Current, DirectUploadsController, DiskController, Downloader, Engine, Error, FileNotFoundError, Filename, FixtureSet, IntegrityError, InvariableError, LogSubscriber, MirrorJob, Preview, PreviewError, Previewer, PurgeJob, Record, Service, UnpreviewableError, UnrepresentableError, Variant, VariantRecord, VariantWithRecord, Variation

Class Method Summary collapse

Methods included from ActiveSupport::Autoload

autoload, autoload_at, autoload_under, eager_autoload, eager_load!, extended

Class Method Details

.deprecatorObject

:nodoc:



4
5
6
# File 'activestorage/lib/active_storage/deprecator.rb', line 4

def self.deprecator # :nodoc:
  @deprecator ||= ActiveSupport::Deprecation.new
end

.gem_versionObject

Returns the currently loaded version of Active Storage as a Gem::Version.



5
6
7
# File 'activestorage/lib/active_storage/gem_version.rb', line 5

def self.gem_version
  Gem::Version.new VERSION::STRING
end

.replace_on_assign_to_manyObject



367
368
369
# File 'activestorage/lib/active_storage.rb', line 367

def self.replace_on_assign_to_many
  ActiveStorage.deprecator.warn("config.active_storage.replace_on_assign_to_many is deprecated and has no effect.")
end

.replace_on_assign_to_many=(value) ⇒ Object



371
372
373
# File 'activestorage/lib/active_storage.rb', line 371

def self.replace_on_assign_to_many=(value)
  ActiveStorage.deprecator.warn("config.active_storage.replace_on_assign_to_many is deprecated and has no effect.")
end

.silence_invalid_content_types_warningObject



375
376
377
# File 'activestorage/lib/active_storage.rb', line 375

def self.silence_invalid_content_types_warning
  ActiveStorage.deprecator.warn("config.active_storage.silence_invalid_content_types_warning is deprecated and has no effect.")
end

.silence_invalid_content_types_warning=(value) ⇒ Object



379
380
381
# File 'activestorage/lib/active_storage.rb', line 379

def self.silence_invalid_content_types_warning=(value)
  ActiveStorage.deprecator.warn("config.active_storage.silence_invalid_content_types_warning is deprecated and has no effect.")
end

.versionObject

Returns the currently loaded version of Active Storage as a Gem::Version.



7
8
9
# File 'activestorage/lib/active_storage/version.rb', line 7

def self.version
  gem_version
end