aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-07-15 20:20:36 -0400
committerPaul Duncan <pabs@pablotron.org>2016-07-15 20:20:36 -0400
commit255dc42c98e7c3c30e9b5a19af85cf91f0a81e2e (patch)
tree803f5c5adcfd09012be50380855004d60a8035ec
parent5589dac10cf28c462793079469ec811c8267531c (diff)
downloadguff-255dc42c98e7c3c30e9b5a19af85cf91f0a81e2e.tar.bz2
guff-255dc42c98e7c3c30e9b5a19af85cf91f0a81e2e.zip
refactor models/model
-rw-r--r--src/guff.cr7
-rw-r--r--src/guff/models/model.cr4
2 files changed, 5 insertions, 6 deletions
diff --git a/src/guff.cr b/src/guff.cr
index c7e3216..e5eca75 100644
--- a/src/guff.cr
+++ b/src/guff.cr
@@ -9,7 +9,7 @@ module Guff
VERSION = "0.1.0"
end
-require "./guff/*"
+require "./guff/**"
private macro define_lazy_getters(hash)
{% for name, klass in hash %}
@@ -47,11 +47,6 @@ end
module Guff
module Models
- abstract class Model
- def initialize(@context : Context)
- end
- end
-
class PostModel < Model
SQL = {
add: "
diff --git a/src/guff/models/model.cr b/src/guff/models/model.cr
new file mode 100644
index 0000000..8d7adef
--- /dev/null
+++ b/src/guff/models/model.cr
@@ -0,0 +1,4 @@
+abstract class Guff::Models::Model
+ def initialize(@context : Context)
+ end
+end