Sha256: 436cead6e692f6fd14b2bee20700d32706657516d2a9a5201fa774701d0feee4
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
# == Schema Information # # Table name: assets # # id :integer(4) not null, primary key # data_file_name :string(255) not null # data_content_type :string(255) # data_file_size :integer(4) # assetable_id :integer(4) not null # assetable_type :string(25) not null # type :string(25) # guid :string(10) # locale :integer(1) default(0) # user_id :integer(4) # created_at :datetime # updated_at :datetime # duration :float default(0.0) # resolution_id :integer(1) default(0) # # Indexes # # index_assets_on_assetable_type_and_type_and_assetable_id (assetable_type,type,assetable_id) # index_assets_on_assetable_type_and_assetable_id (assetable_type,assetable_id) # index_assets_on_user_id (user_id) # class Avatar < Asset sunrise_uploader AvatarUploader validates :data_content_type, :inclusion => {:in => Sunrise::Utils::IMAGE_TYPES } validates_integrity_of :data validates_filesize_of :data, :maximum => 1.megabytes.to_i end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sunrise-locales-0.1.0 | spec/dummy/app/models/defaults/avatar.rb |