Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if Rails.env.training?
- has_attached_file :thumbnail,
- storage: :fog,
- fog_credentials: {
- aws_access_key_id: NitroConfig.get("s3/training_read_only_access_key"),
- aws_secret_access_key: 'production_secret_acesss_key'
- },
- fog_directory: 'production_bucket_name'
- else
- has_attached_file :thumbnail, styles: { small: "75x75#", medium: '256x256#' }, default_url: ActionController::Base.helpers.image_path("/assets/logos/:style/power_logo_transparent.png")
- end
Add Comment
Please, Sign In to add comment