class ActionText::Attachables::MissingAttachable
def initialize(sgid)
def initialize(sgid) @sgid = SignedGlobalID.parse(sgid, for: ActionText::Attachable::LOCATOR_NAME) end
def model
def model @sgid&.model_name.to_s.safe_constantize end
def to_partial_path
def to_partial_path if model model.to_missing_attachable_partial_path else DEFAULT_PARTIAL_PATH end end