Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use helper method to access fog_provider #2660

Merged
merged 1 commit into from Mar 18, 2023
Merged

Use helper method to access fog_provider #2660

merged 1 commit into from Mar 18, 2023

Conversation

joshuamsager
Copy link
Contributor

Replaces instances of: @uploader.fog_credentials[:provider] with it's helper method: fog_provider

This proves to be helpful for me because I am trying to build my own Fog provider. In many scenarios, my provider behaves like AWS and in some scenarios it behaves like Google.

Having the ability to monkeypatch a single method: CarrierWave::Storage::Fog#fog_provider cleans up my implementation greatly.

@mshibuya mshibuya merged commit 1dc6de5 into carrierwaveuploader:master Mar 18, 2023
@mshibuya
Copy link
Member

I think it's better, thank you!

@joshuamsager joshuamsager deleted the joshuamsager/cleaner-fog_provider branch March 18, 2023 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants