Last active
August 13, 2018 12:17
-
-
Save NaiyaShah-BTC/8bf2791199717b7a6027d9637123a50e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
has_attached_file :img, | |
styles: { small: '167x200#', medium: '325x390#', large: '625x750#' }, | |
default_url: '/assets/images/missing_product.png', | |
s3_region: ENV['AWS_REGION'], | |
storage: :s3, | |
s3_protocol: :https, | |
s3_credentials: "#{Rails.root}/config/amazon_s3.yml", | |
url: ':s3_domain_url', | |
path: '/hyper-image/bumon-code/:style/:id/:filename', | |
s3_host_alias: 'https://s3-ap-northeast-1.amazonaws.com/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment