Sha256: 2bab553c0a25ef18f2e1297ca90e71602684c36de754b724bd45410476c4c228
Contents?: true
Size: 249 Bytes
Versions: 24
Compression:
Stored size: 249 Bytes
Contents
class Apiv1::Taxons::ShowController < Apiv1::HomeController def show render json: { taxon: _taxon.to_ember_hash, taxons: _taxon.children.map(&:to_ember_hash) } end private def _taxon @taxon ||= Apiv1::Taxon.find params[:id] end end
Version data entries
24 entries across 24 versions & 1 rubygems