Adds a tab for the category set section
# File vendor/plugins/ubiquo_categories/lib/ubiquo_categories/extensions/helpers.rb, line 6
6: def category_sets_tab(navtab)
7: navtab.add_tab do |tab|
8: tab.text = I18n.t("ubiquo.categories.categories")
9: tab.title = I18n.t("ubiquo.categories.categories")
10: tab.highlights_on "ubiquo/category_sets"
11: tab.highlights_on "ubiquo/categories"
12: tab.link = ubiquo_category_sets_path
13: end if ubiquo_config_call(:categories_permit, {:context => :ubiquo_categories})
14: end
Prepares a collection
# File vendor/plugins/ubiquo_categories/lib/ubiquo_categories/extensions/helpers.rb, line 19
19: def categories_for_select key
20: uhook_categories_for_set category_set(key)
21: end
(Not documented)
# File vendor/plugins/ubiquo_categories/lib/ubiquo_categories/extensions/helpers.rb, line 23
23: def category_set(key)
24: key = key.to_s.pluralize
25: CategorySet.find_by_key(key) ||
26: CategorySet.find_by_key(key.singularize) ||
27: raise(SetNotFoundError.new(key))
28: end
Disabled; run with $DEBUG to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.