Use likes
and shares
totalItems on status creations and updates (#32620)
This commit is contained in:
parent
77cd16f4ee
commit
9074c1fac9
14 changed files with 326 additions and 14 deletions
|
@ -34,8 +34,8 @@ RSpec.configure do |config|
|
|||
end
|
||||
end
|
||||
|
||||
def serialized_record_json(record, serializer, adapter: nil)
|
||||
options = { serializer: serializer }
|
||||
def serialized_record_json(record, serializer, adapter: nil, options: {})
|
||||
options[:serializer] = serializer
|
||||
options[:adapter] = adapter if adapter.present?
|
||||
JSON.parse(
|
||||
ActiveModelSerializers::SerializableResource.new(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue