Class: PushType::TaxonomiesController

Inherits:
AdminController
  • Object
show all
Defined in:
app/controllers/push_type/taxonomies_controller.rb

Instance Method Summary collapse

Methods inherited from AdminController

#info

Instance Method Details

#indexObject



6
7
8
# File 'app/controllers/push_type/taxonomies_controller.rb', line 6

def index
  @taxonomies = PushType::Taxonomy.descendants
end

#showObject



10
11
12
# File 'app/controllers/push_type/taxonomies_controller.rb', line 10

def show
  @terms = taxonomy.hash_tree.map { |parent, children| json_map(parent, children) }
end