impress/app/controllers/donation_features_controller.rb
2014-09-10 15:38:26 -05:00

8 lines
245 B
Ruby

class DonationFeaturesController < ApplicationController
def index
# TODO: scope by campaign?
@features = DonationFeature.includes(:donation).includes(:outfit).
where('outfit_id IS NOT NULL')
render json: @features
end
end