diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-07-30 15:10:49 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-07-30 15:10:49 -0400 |
commit | 9cec164e724465c11ff91772cdad3126de663ade (patch) | |
tree | d08ad67b929c24351f5dea15ef641aa4001f0e99 | |
parent | 0557ef64e2bd1161fd98a5dff6e45aea8e0d7567 (diff) | |
download | guff-9cec164e724465c11ff91772cdad3126de663ade.tar.bz2 guff-9cec164e724465c11ff91772cdad3126de663ade.zip |
remove site.set_default
-rw-r--r-- | src/guff/apis.cr | 7 | ||||
-rw-r--r-- | src/guff/models/site.cr | 20 |
2 files changed, 0 insertions, 27 deletions
diff --git a/src/guff/apis.cr b/src/guff/apis.cr index 5449c72..7b22130 100644 --- a/src/guff/apis.cr +++ b/src/guff/apis.cr @@ -251,13 +251,6 @@ module Guff::APIs nil end - -# -# def do_site_set_default(params : HTTP::Params) -# @context.models.site.set(params["site_id"].to_i64) -# nil -# end -# end module FileAPI diff --git a/src/guff/models/site.cr b/src/guff/models/site.cr index 9eaed1a..b3e93b3 100644 --- a/src/guff/models/site.cr +++ b/src/guff/models/site.cr @@ -142,13 +142,6 @@ class Guff::Models::SiteModel < Guff::Models::Model ? ) ", - -# -# set_default: " -# UPDATE sites -# SET is_default = (site_id = ?) -# ", -# } def get_id(host : String?) : Int64? @@ -363,17 +356,4 @@ class Guff::Models::SiteModel < Guff::Models::Model nil end - -# -# def set_default(site_id : Int64) -# db = @context.dbs.rw -# -# db.transaction do -# db.query(SQL[:set_default], [site_id.to_s]) -# get_default_id -# end -# -# nil -# end -# end |