Files

Class Index [+]

Quicksearch

UbiquoCategories::Connectors::Standard::UbiquoCategoriesController::InstanceMethods

Public Instance Methods

uhook_create_category() click to toggle source

Creates a new instance of category.

     # File vendor/plugins/ubiquo_categories/lib/ubiquo_categories/connectors/standard.rb, line 125
125:           def uhook_create_category
126:             ::Category.new(params[:category])
127:           end
uhook_destroy_category(category) click to toggle source

Destroys a category instance. returns a success boolean

     # File vendor/plugins/ubiquo_categories/lib/ubiquo_categories/connectors/standard.rb, line 130
130:           def uhook_destroy_category(category)
131:             category.destroy
132:           end
uhook_edit_category(category) click to toggle source

Performs any required action on category when in edit Edit action will not continue if this hook returns false

     # File vendor/plugins/ubiquo_categories/lib/ubiquo_categories/connectors/standard.rb, line 120
120:           def uhook_edit_category category
121:             true
122:           end
uhook_index_filters() click to toggle source

Returns a hash with extra filters to apply

    # File vendor/plugins/ubiquo_categories/lib/ubiquo_categories/connectors/standard.rb, line 97
97:           def uhook_index_filters
98:             {}
99:           end
uhook_index_search_subject() click to toggle source

Returns a subject that will have applied the index filters (e.g. a class, with maybe some scopes applied)

     # File vendor/plugins/ubiquo_categories/lib/ubiquo_categories/connectors/standard.rb, line 103
103:           def uhook_index_search_subject
104:             ::Category
105:           end
uhook_new_category() click to toggle source

Initializes a new instance of category.

     # File vendor/plugins/ubiquo_categories/lib/ubiquo_categories/connectors/standard.rb, line 108
108:           def uhook_new_category
109:             ::Category.new
110:           end
uhook_show_category(category) click to toggle source

Performs any required action on category when in show Show action will not continue if this hook returns false

     # File vendor/plugins/ubiquo_categories/lib/ubiquo_categories/connectors/standard.rb, line 114
114:           def uhook_show_category category
115:             true
116:           end

Disabled; run with $DEBUG to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.