You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a flipper :burial_module_enabled to allow us to easily switch between our current setup and the new module
Update features.yml:
burial_module_enabled:
actor_type: user
description: Enables new Burial module
enable_in_development: true
Update routes.rb to something like:
namespace :v0, defaults: { format: 'json' } do
...
if Flipper.enabled?(:burial_module_enabled)
# Use the new controller from the module folder
resources :burial_claims, only: %i[create show], controller: 'modules/burials/burial_claims_controller'
else
# Use the existing controller
resources :burial_claims, only: %i[create show], controller: 'v0/burial_claims_controller'
end
...
end
The text was updated successfully, but these errors were encountered:
Add a flipper
:burial_module_enabled
to allow us to easily switch between our current setup and the new modulefeatures.yml
:routes.rb
to something like:The text was updated successfully, but these errors were encountered: