From 255dc42c98e7c3c30e9b5a19af85cf91f0a81e2e Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 15 Jul 2016 20:20:36 -0400 Subject: refactor models/model --- src/guff.cr | 7 +------ src/guff/models/model.cr | 4 ++++ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 src/guff/models/model.cr (limited to 'src') 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 -- cgit v1.2.3