Open phil opened 6 years ago
options[:disabled]
is fine, it's the impact that this has - I think you either want it to return a 500 error if it's disabled, or crash the app (System.exit
).
Would it be annoying for bouncer to be "always enabled" for local development, or have to be wrapped in an if
clause ( like if Rails.env.production?
) of some kind to be disabled? What's the current common use case for development?
https://github.com/heroku/heroku-bouncer/blob/7760adc7b295036d511ad0c92975fea9d35087de/lib/heroku/bouncer/builder.rb#L37