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.
10 lines
485 B
10 lines
485 B
json.(@bank, :id, :name, :description, :homework_type, :is_public, :min_num, :max_num, :base_on_project, :reference_answer)
|
|
json.authorize @bank.user_id == current_user.id || current_user.admin?
|
|
|
|
json.attachments @bank_attachments do |attachment|
|
|
json.partial! "attachments/attachment_simple", locals: {attachment: attachment}
|
|
end
|
|
|
|
json.reference_attachments @reference_attachments do |attachment|
|
|
json.partial! "attachments/attachment_simple", locals: {attachment: attachment}
|
|
end |