Class: CompletionKit::Tag
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- CompletionKit::Tag
- Defined in:
- app/models/completion_kit/tag.rb
Constant Summary collapse
- COLORS =
%w[ crimson burnt-orange amber mint deep-emerald electric-cyan cobalt-blue deep-indigo amethyst rose ].freeze
Constants inherited from ApplicationRecord
ApplicationRecord::TenantScopedUniquenessValidator
Instance Method Summary collapse
Instance Method Details
#as_json(options = {}) ⇒ Object
21 22 23 24 25 26 |
# File 'app/models/completion_kit/tag.rb', line 21 def as_json( = {}) { id: id, name: name, color: color, created_at: created_at, updated_at: updated_at } end |