Class: ActiveStorage::AwsRecord::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/active_storage/aws_record/railtie.rb

Overview

Wires the gem into a Rails app: maps config.activestorage_aws_record onto the gem’s Configuration, registers the three classes as Active Storage’s persistence classes before class indirection resolves, then — once the app is initialized — discovers the table layout and declares the models’ key attributes, sets up the service registry (the custom blob class does not load the default Active Record blob that normally does this), and installs the preview_image / image attachments.