video/app/models/video_channel.rb

19 lines
373 B
Ruby
Raw Normal View History

2015-08-31 09:46:03 +00:00
# encoding: utf-8
class VideoChannel
include Mongoid::Document
include Mongoid::Timestamps
include OrbitCategory::Categorizable
include OrbitModel::Status
include OrbitTag::Taggable
include Slug
field :title , localize: true
field :owner
field :channel_link
field :description , localize: true
2015-10-21 12:27:43 +00:00
def self.find_by_param(input)
self.find_by(uid: input)
end
2015-08-31 09:46:03 +00:00
end