wusher
Posted on • Originally published atwusher.github.io on
Feature Flags On Rails Routes
Found atweet explaining how to wrap a rails route with a feature flag.
resources :media, constraints: ->(req) do current_user = req.env["warden"].user(:user) Flipper.enabled?(:media_uploads, current_user) end
Source:https://twitter.com/carbon\_noreply/status/1565244390666252288
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse