aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/company_in_module.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/company_in_module.rb')
-rw-r--r--activerecord/test/models/company_in_module.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/company_in_module.rb b/activerecord/test/models/company_in_module.rb
index dae102d12b..bf0a0d1c3e 100644
--- a/activerecord/test/models/company_in_module.rb
+++ b/activerecord/test/models/company_in_module.rb
@@ -91,7 +91,7 @@ module MyApplication
protected
def check_empty_credit_limit
- errors.add_on_empty "credit_limit"
+ errors.add("credit_card", :blank) if credit_card.blank?
end
end
end