Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/models/hackathon/branded.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ module Hackathon::Branded
extend ActiveSupport::Concern

included do
has_one_attached :logo do |logo|
has_one_attached :logo, analyze: :immediately do |logo|
logo.variant :small, resize_to_limit: [128, 128]
end
has_one_attached :banner do |banner|

has_one_attached :banner, analyze: :immediately do |banner|
banner.variant :small, resize_to_limit: [228, 128]
banner.variant :large, resize_to_limit: [1920, 1080]
end
Expand Down