diff options
author | Akira Matsuda <ronnie@dio.jp> | 2017-01-05 18:50:18 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2017-01-05 20:01:02 +0900 |
commit | 5f03172f54a58a57a48a3121562beb2cef866cbe (patch) | |
tree | edfdce3f7862b9d7fc546eb90fafa7d54e42e9f3 /activerecord/lib/active_record/reflection.rb | |
parent | 5473e390d362755125d2f47b64ef0a135f2fe111 (diff) | |
download | rails-5f03172f54a58a57a48a3121562beb2cef866cbe.tar.gz rails-5f03172f54a58a57a48a3121562beb2cef866cbe.tar.bz2 rails-5f03172f54a58a57a48a3121562beb2cef866cbe.zip |
Privatize unneededly protected methods in Active Record
Diffstat (limited to 'activerecord/lib/active_record/reflection.rb')
-rw-r--r-- | activerecord/lib/active_record/reflection.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb index a0016f0735..72f1ac4896 100644 --- a/activerecord/lib/active_record/reflection.rb +++ b/activerecord/lib/active_record/reflection.rb @@ -969,8 +969,7 @@ module ActiveRecord end end - protected - + private def actual_source_reflection # FIXME: this is a horrible name source_reflection.send(:actual_source_reflection) end @@ -981,7 +980,6 @@ module ActiveRecord def inverse_name; delegate_reflection.send(:inverse_name); end - private def derive_class_name # get the class_name of the belongs_to association of the through reflection options[:source_type] || source_reflection.class_name |