video/app/models/video_channel.rb

19 lines
373 B
Ruby

# 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
def self.find_by_param(input)
self.find_by(uid: input)
end
end