We study the embeddings $E:W\big(X(\Om),Y(\Om)\big)\hra Z(\Om)$, where $X(\Om)$, $Y(\Om)$ and $Z(\Om)$ are rearrangement-invariant Banach function spaces (BFS) defined on a~generalized ridged domain.