Remove unused constant aliases for `Arel::{InnerJoin,OuterJoin}`

`Arel::Nodes::{InnerJoin,OuterJoin}` exists since Arel 2.2 still today.

https://github.com/rails/arel/blame/v9.0.0/lib/arel/nodes/inner_join.rb
https://github.com/rails/arel/blame/v9.0.0/lib/arel/nodes/outer_join.rb
This commit is contained in:
Ryuta Kamizono 2018-08-18 17:20:54 +09:00
parent 71054b1397
commit d4a0fa6158
1 changed files with 2 additions and 7 deletions

View File

@ -1,12 +1,7 @@
if defined?(::ActiveRecord)
module Polyamorous
if defined?(Arel::InnerJoin)
InnerJoin = Arel::InnerJoin
OuterJoin = Arel::OuterJoin
else
InnerJoin = Arel::Nodes::InnerJoin
OuterJoin = Arel::Nodes::OuterJoin
end
InnerJoin = Arel::Nodes::InnerJoin
OuterJoin = Arel::Nodes::OuterJoin
JoinDependency = ::ActiveRecord::Associations::JoinDependency
JoinAssociation = ::ActiveRecord::Associations::JoinDependency::JoinAssociation