Adding acts_as_list to habit... doesn't seem necessary, but was part

of the tutorial so I'll leave it in
This commit is contained in:
Tyler Renelle 2012-02-01 16:57:35 -05:00
parent 229be57c31
commit a6079d6469
2 changed files with 3 additions and 2 deletions

View file

@ -40,4 +40,5 @@ gem 'jquery-rails'
gem 'devise', '>= 2.0'
gem 'whenever'
gem 'mysql2'
gem 'therubyracer'
gem 'therubyracer'
gem "acts_as_list"

View file

@ -4,8 +4,8 @@ class Habit < ActiveRecord::Base
ONE_TIME = 3
belongs_to :user
default_scope :order => 'position ASC'
acts_as_list
# TODO set cron for this
def self.clear_done