Sha256: 87eed28d0ca8b0c2994c41c889e421b28afd6f65e078379ef185b58b51193b3d
Contents?: true
Size: 254 Bytes
Versions: 1
Compression:
Stored size: 254 Bytes
Contents
class Sprangular::TaxonomiesController < Sprangular::BaseController def index @taxonomies = Spree::Taxonomy.order('name').includes(root: :children) render json: @taxonomies, each_serializer: Sprangular::TaxonomySerializer end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sprangular-0.1.0 | app/controllers/sprangular/taxonomies_controller.rb |