Class: Quote

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/quote.rb

Overview

Uses paperclip gem to store attachment file snippet in Amazon S3 Bucket

Instance Method Summary collapse

Instance Method Details

#s3_credentialsObject


9
10
11
# File 'app/models/quote.rb', line 9

def s3_credentials
  {:bucket =>  ENV['AMAZON_S3_BUCKET'], :access_key_id => ENV['AMAZON_S3_ACCESS_KEY_ID'], :secret_access_key =>  ENV['AMAZON_S3_SECRET_ACCESS_KEY']}
end