Class: PushType::TaxonomiesController
- Inherits:
-
AdminController
- Object
- ActionController::Base
- AdminController
- PushType::TaxonomiesController
- Defined in:
- app/controllers/push_type/taxonomies_controller.rb
Instance Method Summary collapse
Methods inherited from AdminController
Instance Method Details
#index ⇒ Object
6 7 8 |
# File 'app/controllers/push_type/taxonomies_controller.rb', line 6 def index @taxonomies = PushType::Taxonomy.descendants end |
#show ⇒ Object
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 |