Prettify sponsors section
This commit is contained in:
parent
2e79f65989
commit
647a40be63
3 changed files with 10 additions and 20 deletions
|
|
@ -6,6 +6,8 @@ class Sponsor < ActiveRecord::Base
|
|||
|
||||
validates_attachment_content_type :logo,
|
||||
content_type: [/jpg/, /jpeg/, /png/, /gif/],
|
||||
size: { in: 0..500.kilobytes }
|
||||
size: { in: 0..500.kilobytes },
|
||||
presence: true
|
||||
|
||||
validates_presence_of :name, :website_url, :sponsorship_level
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue