Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
It's s3.us-west-2 now, with a dot
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-burns committed Jan 23, 2018
1 parent 9634b31 commit b2e5eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/step_definitions/s3_steps.rb
@@ -1,6 +1,6 @@
When /^I attach the file "([^"]*)" to "([^"]*)" on S3$/ do |file_path, field|
definition = Paperclip::AttachmentRegistry.definitions_for(User)[field.downcase.to_sym]
path = "https://paperclip.s3-us-west-2.amazonaws.com#{definition[:path]}"
path = "https://paperclip.s3.us-west-2.amazonaws.com#{definition[:path]}"
path.gsub!(':filename', File.basename(file_path))
path.gsub!(/:([^\/\.]+)/) do |match|
"([^\/\.]+)"
Expand Down

0 comments on commit b2e5eee

Please sign in to comment.