lib/mail_safe/config.rb in mail_safe-0.2.0 vs lib/mail_safe/config.rb in mail_safe-0.3.0

- old
+ new

@@ -4,10 +4,10 @@ class Config cattr_accessor :internal_address_definition def self.is_internal_address?(address) case internal_address_definition - when Regexp then address =~ internal_address_definition + when Regexp then !!(address =~ internal_address_definition) when Proc then internal_address_definition.call(address) else return address.downcase == developer_email_address.downcase if developer_email_address raise InvalidConfigSettingError.new("internal_address_definition must be a Regexp or Proc, but was: #{internal_address_definition.class.to_s}") end \ No newline at end of file