Class: Hyrax::RedirectPath

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/hyrax/redirect_path.rb

Overview

ActiveRecord-backed redirects table for global path uniqueness.

Maintained by Hyrax::Transactions::Steps::SyncRedirectPaths and Hyrax::Transactions::Steps::RemoveRedirectPaths; queried by Hyrax::RedirectsLookup. The unique index on from_path is the source of truth for "no two records share a redirect alias"; this class just exposes it.