mirror of
https://github.com/activerecord-hackery/ransack.git
synced 2022-11-09 13:47:45 -05:00
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:
parent
71054b1397
commit
d4a0fa6158
1 changed files with 2 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue