From 9951f668e8c54cad10871c7299e4e1b7abbfb487 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Thu, 19 Jun 2014 13:00:28 +1000 Subject: [PATCH] Adding 180x180 size to logo --- app/models/enterprise.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/enterprise.rb b/app/models/enterprise.rb index cc21f866db..957a0df64f 100644 --- a/app/models/enterprise.rb +++ b/app/models/enterprise.rb @@ -22,7 +22,7 @@ class Enterprise < ActiveRecord::Base accepts_nested_attributes_for :address accepts_nested_attributes_for :producer_properties, allow_destroy: true, reject_if: lambda { |pp| pp[:property_name].blank? } - has_attached_file :logo, :styles => { :medium => "300x300>", :thumb => "100x100>" } + has_attached_file :logo, :styles => { :medium => "300x300>", small: "180x180>", :thumb => "100x100>" } has_attached_file :promo_image, :styles => { :large => "1200x260#", :thumb => "100x100>" } validates_presence_of :name