mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 07:36:41 +10:00
* Fix bug with redirect to image logo after login * Use one (light) logo for header * Improve header logo preview * Dont require authentication for appearance images
10 lines
343 B
Ruby
10 lines
343 B
Ruby
class Appearance < ActiveRecord::Base
|
|
validates :title, presence: true
|
|
validates :description, presence: true
|
|
validates :logo, file_size: { maximum: 1000.kilobytes.to_i }
|
|
validates :light_logo, file_size: { maximum: 1000.kilobytes.to_i }
|
|
|
|
mount_uploader :logo, AttachmentUploader
|
|
mount_uploader :light_logo, AttachmentUploader
|
|
end
|