event_news/app/models/event_news_feed.rb

9 lines
248 B
Ruby
Raw Normal View History

2020-07-22 02:23:36 +00:00
class EventNewsFeed
include Mongoid::Document
include Mongoid::Timestamps
include Slug
field :title, as: :slug_title, type: String, localize: true
field :tag_ids, type: Array, default: []
2021-07-14 04:56:02 +00:00
field :category_ids, type: Array, default: []
2020-07-22 02:23:36 +00:00
end