Sha256: a7d3d9ec0f4b4d3d86da4648adb07f6538a19790f87e4b8a7ad2d067588dae70
Contents?: true
Size: 786 Bytes
Versions: 103
Compression:
Stored size: 786 Bytes
Contents
class Feature include Mongoid::Document include Mongoid::Timestamps field :name, :type => String field :subhead, :type => String field :image_path, :type => String field :link_path, :type => String field :partial_name, :type => String field :inner_html, :type => String field :weight, :type => Integer, :default => 10 belongs_to :photo, :optional => true belongs_to :report, :optional => true belongs_to :gallery, :optional => true belongs_to :video, :optional => true # has_one :photo # has_one :report # has_one :gallery # has_one :video embedded_in :venue embedded_in :site embedded_in :city embedded_in :tag def self.all self.order_by( :created_at => :desc ) end def self.n_features 4 end end
Version data entries
103 entries across 103 versions & 1 rubygems