aboutsummaryrefslogtreecommitdiff
path: root/tests/tutorial
diff options
context:
space:
mode:
authorMelody Horn / boringcactus <melody@boringcactus.com>2021-06-18 10:12:16 -0600
committerMelody Horn / boringcactus <melody@boringcactus.com>2021-06-18 10:12:16 -0600
commit709eb44ccb8d08ad7f26cdac2932eadc7ccd48e7 (patch)
treecc4aa6854147c0dc74bbd3bea9b8b9cfc083b62f /tests/tutorial
parent3b880c0ae7963d783fb87a3389f98070e448495a (diff)
downloadtosin-709eb44ccb8d08ad7f26cdac2932eadc7ccd48e7.tar.gz
tosin-709eb44ccb8d08ad7f26cdac2932eadc7ccd48e7.zip
make model metadata available in AppConfig
Diffstat (limited to 'tests/tutorial')
-rw-r--r--tests/tutorial/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tutorial/mod.rs b/tests/tutorial/mod.rs
index 0bd626e..fb05066 100644
--- a/tests/tutorial/mod.rs
+++ b/tests/tutorial/mod.rs
@@ -223,7 +223,7 @@ tosin = { path = "/home/cactus/Documents/tosin" }
// update polls/models.rs
fs::write("src/polls/models.rs", r#"
-use tosin::db::models::{Model, Id};
+use tosin::db::models::{Model, Id, gather};
#[derive(Model)]
pub struct Question {
@@ -244,6 +244,8 @@ pub struct Choice {
#[model(default = 0)]
votes: usize,
}
+
+gather!();
"#).unwrap();
// update main.rs