aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2017-01-05 18:50:18 +0900
committerAkira Matsuda <ronnie@dio.jp>2017-01-05 20:01:02 +0900
commit5f03172f54a58a57a48a3121562beb2cef866cbe (patch)
treeedfdce3f7862b9d7fc546eb90fafa7d54e42e9f3 /activerecord/test/models
parent5473e390d362755125d2f47b64ef0a135f2fe111 (diff)
downloadrails-5f03172f54a58a57a48a3121562beb2cef866cbe.tar.gz
rails-5f03172f54a58a57a48a3121562beb2cef866cbe.tar.bz2
rails-5f03172f54a58a57a48a3121562beb2cef866cbe.zip
Privatize unneededly protected methods in Active Record
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/company.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/test/models/company.rb b/activerecord/test/models/company.rb
index 4561b3132b..20e37710e7 100644
--- a/activerecord/test/models/company.rb
+++ b/activerecord/test/models/company.rb
@@ -216,14 +216,12 @@ class Account < ActiveRecord::Base
validate :check_empty_credit_limit
- protected
+ private
def check_empty_credit_limit
errors.add("credit_limit", :blank) if credit_limit.blank?
end
- private
-
def private_method
"Sir, yes sir!"
end