class CategoryDb::Model::Category
Public Instance Methods
on_before_save()
click to toggle source
# File lib/tagutils/categories/models/category.rb, line 25 def on_before_save # replace space with dash e.g. north america becomes north_america and so on self.slug = key.gsub( ' ', '_' ) end
title()
click to toggle source
alias for name (depreciated api calls)
# File lib/tagutils/categories/models/category_comp.rb, line 11 def title() name; end
title=(value)
click to toggle source
# File lib/tagutils/categories/models/category_comp.rb, line 12 def title=(value) self.name = value; end