initial plan structure, and some misc fixes

This commit is contained in:
Kyle Drake 2014-09-12 14:54:53 -07:00
parent 555e64ac97
commit 86990f3535
10 changed files with 129 additions and 24 deletions

View file

@ -13,7 +13,7 @@ class Tag < Sequel::Model
end
def self.suggestions(name, limit=3)
Tag.filter(name: /^#{name}/).
Tag.filter(name: /^#{name}/i).
order(:name).
limit(limit).
all