Shrine with Microsoft Azure Dynamic Multiple Containers #735
Unanswered
armanibagus
asked this question in
Q&A
Replies: 1 comment
-
|
You could use dynamic_storage plugin with # config/initializers/shrine.rb
Shrine.plugin :dynamic_storage
Shrine.storage :store do
# storage instance based on `Current.storage`
end# app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
around_action :set_storage
def set_storage(&block)
Current.with(storage: dynamic_storage, &block)
end
end |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Has anyone tried integrating Microsoft Azure with multiple containers (dynamic switching per request) using Shrine?
I cannot find any documentation for that (or maybe I missed something?).
Beta Was this translation helpful? Give feedback.
All reactions