diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-03-06 18:08:34 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-03-06 18:08:34 -0500 |
commit | b89d53220afee70a991fe8c3ec694e32f1954ea0 (patch) | |
tree | ce65990beca3d70ca81b438048aaf0f5997f29e3 /src/guff/models.cr | |
parent | 5771ff1b239f8452a718cebcc2cf8ae49a93b3a9 (diff) | |
download | old-guff-b89d53220afee70a991fe8c3ec694e32f1954ea0.tar.bz2 old-guff-b89d53220afee70a991fe8c3ec694e32f1954ea0.zip |
populate postmodel stubs
Diffstat (limited to 'src/guff/models.cr')
-rw-r--r-- | src/guff/models.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guff/models.cr b/src/guff/models.cr index 7962c73..631be8d 100644 --- a/src/guff/models.cr +++ b/src/guff/models.cr @@ -4,7 +4,7 @@ require "./database-updater" private macro define_model_getters(hash) {% for name, klass in hash %} def {{ name.id }} - @cache[name] ||= {{ klass.id }}.new(self) + @cache[{{ name }}] ||= {{ klass.id }}.new(self) end {% end %} end |