In this ActiveRecord commit that was released with Rails 5.2.0, the method binds_from_relation was replaced with arel_from_relation.
This change breaks the Redshift adapter.
With this patch, we look to see if the new arel_from_relation method exists, and if so, we use that. Otherwise we fall back to the binds_from_relation method.
In this ActiveRecord commit that was released with Rails 5.2.0, the method
binds_from_relation
was replaced witharel_from_relation
.This change breaks the Redshift adapter.
With this patch, we look to see if the new
arel_from_relation
method exists, and if so, we use that. Otherwise we fall back to thebinds_from_relation
method.