Would be a little better to do the `to_sym` outside the closure, and change it to `environments.include?(self.environment)`.