homing 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/email.rb +1 -1
- metadata +3 -3
data/app/models/email.rb
CHANGED
@@ -8,7 +8,7 @@ class Email < ActiveRecord::Base
|
|
8
8
|
validates_uniqueness_of :address
|
9
9
|
validates_presence_of :unsubscribe_token
|
10
10
|
validates_uniqueness_of :unsubscribe_token
|
11
|
-
before_validation :set_unsubscribe_token
|
11
|
+
before_validation :set_unsubscribe_token, :on => :create
|
12
12
|
belongs_to :owner, :polymorphic => true
|
13
13
|
|
14
14
|
state_machine do
|
metadata
CHANGED