aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models/reply.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/test/models/reply.rb')
-rw-r--r--activemodel/test/models/reply.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/test/models/reply.rb b/activemodel/test/models/reply.rb
index acfd801674..e86692677f 100644
--- a/activemodel/test/models/reply.rb
+++ b/activemodel/test/models/reply.rb
@@ -2,11 +2,11 @@ require 'models/topic'
class Reply < Topic
validate :errors_on_empty_content
- validate_on_create :title_is_wrong_create
+ validate :title_is_wrong_create, :on => :create
validate :check_empty_title
- validate_on_create :check_content_mismatch
- validate_on_update :check_wrong_update
+ validate :check_content_mismatch, :on => :create
+ validate :check_wrong_update, :on => :update
attr_accessible :title, :author_name, :author_email_address, :written_on, :content, :last_read