You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
373 B
15 lines
373 B
json.partial! "commons/success"
|
|
|
|
json.exercises_count @my_exercises_count
|
|
|
|
if @current_user_exercises.count > 0
|
|
json.my_exercises do
|
|
json.array! @current_user_exercises do |exercise|
|
|
json.poll_name exercise.name
|
|
json.poll_description exercise.description
|
|
json.poll_id exercise.container_id
|
|
end
|
|
end
|
|
else
|
|
json.my_exercises []
|
|
end |