func (v AbstractsResource) List(c buffalo.Context) error {
	tx, ok := c.Value("tx").(*pop.Connection)
	if !ok {
		return errors.WithStack(errors.New("no transaction found"))
	}
	abstracts := &models.Abstracts{}
	q := tx.PaginateFromParams(c.Params())
	if err := q.All(abstracts); err != nil {
		return errors.WithStack(err)
	}
	c.Set("pagination", q.Paginator)
	return c.Render(200, r.Auto(c, abstracts))
}
List gets all Abstracts. This function is mapped to the path
GET /abstracts
package actions
import (
	"github.com/devrelcollective/xela/models"
	"github.com/gobuffalo/buffalo"
	"github.com/gobuffalo/pop"
	"github.com/pkg/errors"
)
type AbstractsResource struct {
	buffalo.Resource
}