# frozen_string_literal: true

class RssController < ApplicationController
  layout false

  def feed
    ads = Ad
    ads = params[:type] == 'want' ? ads.want.available : ads.give
    ads = ads.by_woeid_code(params[:woeid])

    @ads = policy_scope(ads).limit(30)
  end
end

# frozen_string_literal: true

class RssController < ApplicationController
  layout false

  def feed
    ads = Ad
    ads = params[:type] == 'want' ? ads.want : ads.give.available
    ads = ads.by_woeid_code(params[:woeid])

    @ads = policy_scope(ads).limit(30)
  end
end

Fix scope being incorrectly applied in RSS feed
Fix scope being incorrectly applied in RSS feed
