1
0
Fork 0
forked from OpenNeo/impress
impress/app/controllers/donation_features_controller.rb

9 lines
245 B
Ruby
Raw Normal View History

2014-09-10 13:38:26 -07:00
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