module ActionText::Attachable
def from_attachable_sgid(sgid, options = {})
def from_attachable_sgid(sgid, options = {}) method = sgid.is_a?(Array) ? :locate_many_signed : :locate_signed record = GlobalID::Locator.public_send(method, sgid, options.merge(for: LOCATOR_NAME)) record || raise(ActiveRecord::RecordNotFound) end