class ActiveModelSerializersVuetables::Adapter

Public Instance Methods

root() click to toggle source
# File lib/active_model_serializers_vuetables/adapter.rb, line 15
def root
  :data
end
serializable_hash(options = nil) click to toggle source
Calls superclass method
# File lib/active_model_serializers_vuetables/adapter.rb, line 4
def serializable_hash(options = nil)
  data = {}
  collection = serializer.object

  if collection.respond_to?(:total_count)
    data[:count] = collection.total_count
  end

  super.merge(data)
end