提交 9b4f5041 编写于 作者: C Carlos Antonio da Silva

Kill whitespaces

上级 2649fba0
...@@ -177,12 +177,12 @@ def inherited(base) ...@@ -177,12 +177,12 @@ def inherited(base)
super super
end end
end end
# Clean the +Errors+ object if instance is duped # Clean the +Errors+ object if instance is duped
def initialize_dup(other) # :nodoc: def initialize_dup(other) # :nodoc:
@errors = nil @errors = nil
super super
end end
# Returns the +Errors+ object that holds all information about attribute error messages. # Returns the +Errors+ object that holds all information about attribute error messages.
def errors def errors
......
...@@ -344,7 +344,7 @@ def test_does_not_modify_options_argument ...@@ -344,7 +344,7 @@ def test_does_not_modify_options_argument
Topic.validates :title, options Topic.validates :title, options
assert_equal({ :presence => true }, options) assert_equal({ :presence => true }, options)
end end
def test_dup_validity_is_independent def test_dup_validity_is_independent
Topic.validates_presence_of :title Topic.validates_presence_of :title
topic = Topic.new("title" => "Litterature") topic = Topic.new("title" => "Litterature")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册