Skip to content

Commit

Permalink
Merge pull request #38 from metabase/remove-classpath-crawling
Browse files Browse the repository at this point in the history
Remove classpath scanning in automagic batched hydration
  • Loading branch information
camsaul authored Jul 13, 2018
2 parents 6c3c483 + 32e2875 commit 6ef5378
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/toucan/hydrate.clj
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,6 @@
This is built pulling the `hydration-keys` set from all of our entities."
[]
(doseq [ns-symb (ns-find/find-namespaces (classpath/classpath))
:when (s/starts-with? (name ns-symb) (str (models/root-namespace) \.))]
(require ns-symb))
(into {} (for [ns (all-ns)
[_ varr] (ns-publics ns)
:let [model (var-get varr)]
Expand Down

0 comments on commit 6ef5378

Please sign in to comment.