Helpers to assist in the transition to Toucan 2. Once we switch to Toucan 2 this stuff shouldn't be needed, but we can update this namespace instead of having to update code all over the place. | (ns metabase.models.dispatch (:require [potemkin :as p] [toucan2.core :as t2])) |
(p/import-vars [t2 instance instance-of? model]) | |
True if | (defn toucan-instance? [x] (t2/instance? x)) |