Add backend support to read and update list-specific show_replies settings

lolsob-rspec
Thibaut Girka 2018-11-04 12:10:25 +01:00 committed by ThibG
parent b2e9a23ac9
commit 5b84011025
2 changed files with 2 additions and 2 deletions

View File

@ -38,6 +38,6 @@ class Api::V1::ListsController < Api::BaseController
end
def list_params
params.permit(:title)
params.permit(:title, :replies_policy)
end
end

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
class REST::ListSerializer < ActiveModel::Serializer
attributes :id, :title
attributes :id, :title, :replies_policy
def id
object.id.to_s