Guest User

Untitled

a guest
Oct 16th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. if Rails.env.training?
  2. has_attached_file :thumbnail,
  3. storage: :fog,
  4. fog_credentials: {
  5. aws_access_key_id: NitroConfig.get("s3/training_read_only_access_key"),
  6. aws_secret_access_key: 'production_secret_acesss_key'
  7. },
  8. fog_directory: 'production_bucket_name'
  9. else
  10. has_attached_file :thumbnail, styles: { small: "75x75#", medium: '256x256#' }, default_url: ActionController::Base.helpers.image_path("/assets/logos/:style/power_logo_transparent.png")
  11. end
Add Comment
Please, Sign In to add comment