test compatibility with friendly_id, to avoid issues like #306.
only override AR#relation if AR::VERSION >= 3.2.1.