From eb8972937005486d97789a950456f5144f89da56 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Thu, 16 Jun 2011 11:37:38 +0530 Subject: [PATCH] fix merge errors --- .../active_record_validations_callbacks.textile | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/railties/guides/source/active_record_validations_callbacks.textile b/railties/guides/source/active_record_validations_callbacks.textile index 4dcf731d2d..dc33a51628 100644 --- a/railties/guides/source/active_record_validations_callbacks.textile +++ b/railties/guides/source/active_record_validations_callbacks.textile @@ -336,13 +336,8 @@ WARNING. Note that the regular expression above allows a trailing newline charac class Player < ActiveRecord::Base -<<<<<<< HEAD - validates_numericality_of :points - validates_numericality_of :games_played, :only_integer => true -======= validates :points, :numericality => true validates :games_played, :numericality => { :only_integer => true } ->>>>>>> 7fd8f71... fix incorrect validation examples end @@ -397,13 +392,8 @@ There is a +:scope+ option that you can use to specify other attributes that are class Holiday < ActiveRecord::Base -<<<<<<< HEAD - validates_uniqueness_of :name, :scope => :year, - :message => "should happen once per year" -======= validates :name, :uniqueness => { :scope => :year, :message => "should happen once per year" } ->>>>>>> 7fd8f71... fix incorrect validation examples end @@ -411,11 +401,7 @@ There is also a +:case_sensitive+ option that you can use to define whether the class Person < ActiveRecord::Base -<<<<<<< HEAD - validates_uniqueness_of :name, :case_sensitive => false -======= validates :name, :uniqueness => { :case_sensitive => false } ->>>>>>> 7fd8f71... fix incorrect validation examples end