class SiteCategory
Constants
- CATEGORY_TYPES
Public Instance Methods
as_indexed_json(*)
click to toggle source
# File lib/buweb/site_category.rb, line 43 def as_indexed_json(*) { title: title, slug: slug, category_type: type, site_id: site_id.to_s, description: description } end
Protected Instance Methods
set_slug()
click to toggle source
# File lib/buweb/site_category.rb, line 61 def set_slug self.slug = title.parameterize if title? end