Skip to content
This repository
Browse code

cleanup, replace non-breaking spaces with spaces

  • Loading branch information...
commit f00b33e17334c92485f83313a82399d6e30aafe1 1 parent fc32ff4
Yves Senn senny authored

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +5 5 activemodel/lib/active_model/validations.rb
10 activemodel/lib/active_model/validations.rb
@@ -233,7 +233,7 @@ def initialize_dup(other) #:nodoc:
233 233 #
234 234 # person = Person.new
235 235 # person.valid? # => false
236   - # person.errors # => #<ActiveModel::Errors:0x007fe603816640 @messages={:name=>["can't be blank"]}>
  236 + # person.errors # => #<ActiveModel::Errors:0x007fe603816640 @messages={:name=>["can't be blank"]}>
237 237 def errors
238 238 @errors ||= Errors.new(self)
239 239 end
@@ -250,7 +250,7 @@ def errors
250 250 #
251 251 # person = Person.new
252 252 # person.name = ''
253   - # person.valid? # => false
  253 + # person.valid? # => false
254 254 # person.name = 'david'
255 255 # person.valid? # => true
256 256 #
@@ -265,7 +265,7 @@ def errors
265 265 # end
266 266 #
267 267 # person = Person.new
268   - # person.valid? # => true
  268 + # person.valid? # => true
269 269 # person.valid?(:new) # => false
270 270 def valid?(context = nil)
271 271 current_context, self.validation_context = validation_context, context
@@ -287,7 +287,7 @@ def valid?(context = nil)
287 287 #
288 288 # person = Person.new
289 289 # person.name = ''
290   - # person.invalid? # => true
  290 + # person.invalid? # => true
291 291 # person.name = 'david'
292 292 # person.invalid? # => false
293 293 #
@@ -302,7 +302,7 @@ def valid?(context = nil)
302 302 # end
303 303 #
304 304 # person = Person.new
305   - # person.invalid? # => false
  305 + # person.invalid? # => false
306 306 # person.invalid?(:new) # => true
307 307 def invalid?(context = nil)
308 308 !valid?(context)

0 comments on commit f00b33e

Please sign in to comment.
Something went wrong with that request. Please try again.