I don't understand the :& argument for the inject method in this example:
[1, 2].map do |id|
my_custom_method(MyModel.find(id))
end).inject(:&).map(&:category).uniq.compact.sort
:+ makes sense to me:
[1, 2, 3].inject(:+)
is the same as:
[1, 2, 3].inject { |sum, number| sum + number }
What does :& mean, as in the example above?