module Mode class Constraint def initialize(mode) @mode = mode end def matches?(_request) @mode == Rails.application.config.mode # configured from the environment end
Ben Wong spannerinworks
I hereby claim:
- I am spannerinworks on github.
- I am spannerinworks (https://keybase.io/spannerinworks) on keybase.
- I have a public key whose fingerprint is B78E C80C 409B 7EA3 6E59 7009 AD07 BFEE A1C4 AA4A
To claim this, I am signing this object: