End of day commit

This commit is contained in:
2015-02-16 17:53:01 +01:00
parent 5eb3d15638
commit f7d8c4cc7c
27 changed files with 190 additions and 13 deletions
+6
View File
@@ -1,8 +1,14 @@
class Employee
include SimplyStored::Couch
include ActiveModel::SerializerSupport
devise :database_authenticatable, :recoverable, :rememberable, :trackable #, :omniauthable, :omniauth_providers => [:facebook] #, :token_authenticatable , :registerable
property :name
property :email
view :by_email, key: :email
validates :email, email: true
belongs_to :supplier
has_many :orders
has_and_belongs_to_many :lists, storing_keys: false