Making contracts awesome
This commit is contained in:
@@ -8,10 +8,17 @@ class Contract < ActiveRecord::Base
|
||||
|
||||
validates_presence_of :first_name, :signed_at #, :last_name
|
||||
|
||||
has_attached_file :document, { :styles => { :medium => "300x300>"},
|
||||
:storage => :s3,
|
||||
:s3_credentials => { :access_key_id => ENV['S3_KEY'],
|
||||
:secret_access_key => ENV['S3_SECRET'] },
|
||||
:path => ":attachment/:id/:style.:extension",
|
||||
:bucket => ENV['S3_BUCKET'] }
|
||||
has_attached_file :document,
|
||||
{ :styles =>
|
||||
{
|
||||
:medium => "300x300>",
|
||||
:large => "900x900>"
|
||||
},
|
||||
:storage => :s3,
|
||||
:s3_protocol => :https,
|
||||
:s3_credentials => { :access_key_id => ENV['S3_KEY'],
|
||||
:secret_access_key => ENV['S3_SECRET'] },
|
||||
:path => ":attachment/:id/:style.:extension",
|
||||
:bucket => ENV['S3_BUCKET']
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user