event_news/app/models/event_news_feed.rb

9 lines
201 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: []
end