Project

General

Profile

« Previous | Next » 

Revision 3089c85f

Added by Dominic Cleal about 10 years ago

fixes #5490 - ambiguous column in taxonomix pluck on Rails 3.2.8

View differences:

app/models/concerns/taxonomix.rb
def taxable_ids(loc = which_location, org = which_organization, inner_method = which_ancestry_method)
if SETTINGS[:locations_enabled] && loc
inner_ids_loc = if Location.ignore?(self.to_s)
self.pluck(:id)
self.pluck("#{table_name}.id")
else
inner_select(loc, inner_method)
end
end
if SETTINGS[:organizations_enabled] && org
inner_ids_org = if Organization.ignore?(self.to_s)
self.pluck(:id)
self.pluck("#{table_name}.id")
else
inner_select(org, inner_method)
end

Also available in: Unified diff