Sha256: 3cccd0f5e8a28e24d1d10790676d01bb188f2b21d8031e21ff0b5abb78fbf37e
Contents?: true
Size: 928 Bytes
Versions: 1
Compression:
Stored size: 928 Bytes
Contents
# frozen_string_literal: true # == Schema Information # # Table name: assets # # id :integer not null, primary key # data_file_name :string(255) not null # data_content_type :string(255) # data_file_size :integer # assetable_id :integer not null # assetable_type :string(25) not null # type :string(25) # guid :string(255) # locale :integer default(0) # user_id :integer # sort_order :integer default(0) # width :integer # height :integer # created_at :datetime # updated_at :datetime # public_token :string(255) # class Logo < Asset sunrise_uploader LogoUploader validates :data_content_type, inclusion: { in: Sunrise::Utils::IMAGE_TYPES } validates_integrity_of :data validates_filesize_of :data, maximum: 2.megabytes.to_i end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/models/media/logo.rb |