Sha256: 149b57f0fcddaec9df719fa40a4175ea6beccf0f5de47117d6659a7de1e1e1d6
Contents?: true
Size: 264 Bytes
Versions: 1
Compression:
Stored size: 264 Bytes
Contents
class Sprangular::CountriesController < Sprangular::BaseController def index @countries = Spree::Country.includes(:states).order(:name) render json: @countries, root: false, each_serializer: Sprangular::CountrySerializer end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sprangular-0.1.0 | app/controllers/sprangular/countries_controller.rb |