9a2869ab46
The only major difference with the EE version is the change from a light and dark logo to only a header logo The dark logo wasn't used anyway, so it seemed to make sense to me to rename the field to the actual function of it
9 lines
349 B
Ruby
9 lines
349 B
Ruby
class Appearance < ActiveRecord::Base
|
|
validates :title, presence: true
|
|
validates :description, presence: true
|
|
validates :logo, file_size: { maximum: 1.megabyte }
|
|
validates :header_logo, file_size: { maximum: 1.megabyte }
|
|
|
|
mount_uploader :logo, AttachmentUploader
|
|
mount_uploader :header_logo, AttachmentUploader
|
|
end
|