only get registrations with answered question

This commit is contained in:
Stella Rouzi 2015-04-23 14:48:45 +03:00
parent d3e0066f88
commit f420b10732
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ module Admin
end
def show
@registrations = @conference.registrations.joins(:qanswers).uniq
@registrations = @conference.registrations.joins(:qanswers).where(qanswers: { question: @question })
end
def new