mirror of
https://github.com/apigy/selfstarter.git
synced 2026-01-09 06:17:55 -05:00
Merge pull request #48 from gmaliar/master
Fixed before_validate into before_validation
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class User < ActiveRecord::Base
|
||||
attr_accessible :email
|
||||
has_many :orders
|
||||
before_validate :generate_uuid!, :on => :create
|
||||
before_validation :generate_uuid!, :on => :create
|
||||
validates_presence_of :uuid
|
||||
self.primary_key = 'uuid'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user