This should be `options[:environment]` instead of `option(:environment)`, as the `option` method throws an error if the passed option couldn't be found.