forked from OpenNeo/impress
11 lines
284 B
Ruby
11 lines
284 B
Ruby
|
module Fundraising
|
||
|
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
|
||
|
end
|