Ticket #9995: pedantic_doc_fix.diff
| File pedantic_doc_fix.diff, 0.7 kB (added by jeremymcanally, 8 months ago) |
|---|
-
activerecord/lib/active_record/validations.rb
old new 239 239 # protected 240 240 # def validate 241 241 # errors.add_on_empty %w( first_name last_name ) 242 # errors.add("phone_number", "has invalid format") unless phone_number =~ / [0-9]*/242 # errors.add("phone_number", "has invalid format") unless phone_number =~ /^[0-9\-]*$/ 243 243 # end 244 244 # 245 245 # def validate_on_create # is only run the first time a new object is saved