Skip to content

Commit e9bba8a

Browse files
committed
Use resource.client for credentials check
1 parent db6f671 commit e9bba8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/book_store.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def get_client
8484

8585
def get_resource
8686
Rails.logger.warn("[BookStore] get_resource called")
87-
if !@resource || credentials_expired?(@resource)
87+
if !@resource || credentials_expired?(@resource.client)
8888
@resource = Aws::S3::Resource.new(self.class.client_options)
8989
end
9090
@resource

0 commit comments

Comments
 (0)