android build progress

This commit is contained in:
2012-09-18 15:48:32 +02:00
parent 914406f13e
commit 1b62ae37ec
7 changed files with 17 additions and 9 deletions
+4 -1
View File
@@ -3,12 +3,15 @@ class User
include Devise::Orm::SimplyStored
property :active_list_id
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :registerable
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :registerable, :token_authenticatable
has_and_belongs_to_many :lists, storing_keys: false
has_many :orders
validates_uniqueness_of :email
before_save :ensure_authentication_token
view :by_authentication_token, key: :authentication_token
def list_is_closed!
self.active_list_id = nil