Class: ForumCategory
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- ForumCategory
- Extended by:
- FriendlyId
- Defined in:
- app/models/forum_category.rb
Instance Method Summary collapse
Instance Method Details
#color ⇒ Object
9 10 11 12 |
# File 'app/models/forum_category.rb', line 9 def color colour = super colour.start_with?("#") ? colour : "##{colour}" end |