lib/pose/search.rb
def add_joins arel
      @query.joins.inject(arel) do |memo, join_data|
        add_join memo, join_data
      end
    end
def add_joins arel
      @query.joins.inject(arel) do |memo, join_data|
        add_join memo, join_data
      end
    end
Creates a JOIN to the given expression.