Skip to content

Commit

Permalink
Fix @klass arel reference to use @table
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeKaraszi committed Nov 11, 2024
1 parent 84536e1 commit 6e58fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_record_extended/query_methods/unionize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def to_nice_union_sql(color = true)

protected

def build_unions(arel = @klass.arel_table)
def build_unions(arel = @table)
return unless union_values?

union_nodes = apply_union_ordering(build_union_nodes!)
Expand Down

0 comments on commit 6e58fad

Please sign in to comment.