Permalink
Browse files

Kill whitespaces ✂️

  • Loading branch information...
1 parent 2649fba commit 9b4f5041d29f7e558f3286d40e5dc9edbe96cfb6 @carlosantoniodasilva carlosantoniodasilva committed May 15, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 activemodel/lib/active_model/validations.rb
  2. +1 −1 activemodel/test/cases/validations_test.rb
@@ -177,12 +177,12 @@ def inherited(base)
super
end
end
-
+
# Clean the +Errors+ object if instance is duped
def initialize_dup(other) # :nodoc:
@errors = nil
super
- end
+ end
# Returns the +Errors+ object that holds all information about attribute error messages.
def errors
@@ -344,7 +344,7 @@ def test_does_not_modify_options_argument
Topic.validates :title, options
assert_equal({ :presence => true }, options)
end
-
+
def test_dup_validity_is_independent
Topic.validates_presence_of :title
topic = Topic.new("title" => "Litterature")

0 comments on commit 9b4f504

Please sign in to comment.