Skip to content

Commit

Permalink
Added line to create S3 client in search upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Tregenna authored and Ben Tregenna committed Aug 13, 2019
1 parent ae1d41c commit e4b0baa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/modules/s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ def initialize
access_key_id: Rails.application.secrets.aws_access_key_id,
secret_access_key: Rails.application.secrets.aws_secret_access_key,
region: Rails.application.secrets.s3_region
})
})
@client = Aws::S3::Client.new(region: Rails.application.secrets.s3_region)
end

def self.upload object_name, file_path, opts={}
Expand Down

0 comments on commit e4b0baa

Please sign in to comment.