Permalink
Browse files

cleanup, replace non-breaking spaces with spaces

  • Loading branch information...
1 parent fc32ff4 commit f00b33e17334c92485f83313a82399d6e30aafe1 @senny senny committed Oct 18, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 activemodel/lib/active_model/validations.rb
@@ -233,7 +233,7 @@ def initialize_dup(other) #:nodoc:
#
# person = Person.new
# person.valid? # => false
- # person.errors # => #<ActiveModel::Errors:0x007fe603816640 @messages={:name=>["can't be blank"]}>
+ # person.errors # => #<ActiveModel::Errors:0x007fe603816640 @messages={:name=>["can't be blank"]}>
def errors
@errors ||= Errors.new(self)
end
@@ -250,7 +250,7 @@ def errors
#
# person = Person.new
# person.name = ''
- # person.valid? # => false
+ # person.valid? # => false
# person.name = 'david'
# person.valid? # => true
#
@@ -265,7 +265,7 @@ def errors
# end
#
# person = Person.new
- # person.valid? # => true
+ # person.valid? # => true
# person.valid?(:new) # => false
def valid?(context = nil)
current_context, self.validation_context = validation_context, context
@@ -287,7 +287,7 @@ def valid?(context = nil)
#
# person = Person.new
# person.name = ''
- # person.invalid? # => true
+ # person.invalid? # => true
# person.name = 'david'
# person.invalid? # => false
#
@@ -302,7 +302,7 @@ def valid?(context = nil)
# end
#
# person = Person.new
- # person.invalid? # => false
+ # person.invalid? # => false
# person.invalid?(:new) # => true
def invalid?(context = nil)
!valid?(context)

0 comments on commit f00b33e

Please sign in to comment.