Sha256: 6852ec49f166e68020d04305ed1caf0efdb17a43ab8bdcb0a6ca660a27fdc9ca
Contents?: true
Size: 404 Bytes
Versions: 6
Compression:
Stored size: 404 Bytes
Contents
class Admin::TaxonomiesController < Admin::ResourceController respond_to :json, :only => [:get_children] def get_children @taxons = Taxon.find(params[:parent_id]).children respond_with(@taxons) end private def location_after_save if @taxonomy.created_at == @taxonomy.updated_at edit_admin_taxonomy_url(@taxonomy) else admin_taxonomies_url end end end
Version data entries
6 entries across 6 versions & 5 rubygems