Sha256: 94fe1b6a8a4f3deff6583beff312ef72c80c40055142374042888f60913507e3
Contents?: true
Size: 716 Bytes
Versions: 3
Compression:
Stored size: 716 Bytes
Contents
class Asset include Mongoid::Document include Mongoid::Timestamps include Sunrise::CarrierWave::Glue include Sunrise::Models::Asset # Columns field :data_file_name, :type => String field :data_content_type, :type => String field :data_file_size, :type => Integer field :width, :type => Integer field :height, :type => Integer field :guid, :type => String field :sort_order, :type => Integer, :default => 0 field :width, :type => Integer field :height, :type => Integer index({:guid => 1}) index({:user_id => 1}) index({:assetable_type => 1, :assetable_id => 1, :type => 1}) attr_accessible :data validates_presence_of :data default_scope asc(:sort_order) end
Version data entries
3 entries across 3 versions & 1 rubygems