diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-05-27 14:43:15 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-05-27 14:43:15 -0300 |
commit | 431428980ff779a9367ac94e3f43eea1335f9d83 (patch) | |
tree | 157977f0336289825669e66b0e194c89ec9c0a3d /activerecord/lib/active_record/relation | |
parent | d87928b666ad948c19f0299ec7c8d15757f17595 (diff) | |
parent | e53b025d283d92a32c128058c614c2207dce82e1 (diff) | |
download | rails-431428980ff779a9367ac94e3f43eea1335f9d83.tar.gz rails-431428980ff779a9367ac94e3f43eea1335f9d83.tar.bz2 rails-431428980ff779a9367ac94e3f43eea1335f9d83.zip |
Merge pull request #25160 from kamipo/remove_association_for_table
Remove unused `association_for_table` private method
Diffstat (limited to 'activerecord/lib/active_record/relation')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 6477629560..2a831c2017 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -1008,12 +1008,6 @@ module ActiveRecord self.send(unscope_code, result) end - def association_for_table(table_name) - table_name = table_name.to_s - @klass._reflect_on_association(table_name) || - @klass._reflect_on_association(table_name.singularize) - end - def build_from opts = from_clause.value name = from_clause.name |