mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
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:
parent
229be57c31
commit
a6079d6469
2 changed files with 3 additions and 2 deletions
3
Gemfile
3
Gemfile
|
|
@ -40,4 +40,5 @@ gem 'jquery-rails'
|
|||
gem 'devise', '>= 2.0'
|
||||
gem 'whenever'
|
||||
gem 'mysql2'
|
||||
gem 'therubyracer'
|
||||
gem 'therubyracer'
|
||||
gem "acts_as_list"
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue