diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-10-16 23:12:19 -0400 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-10-17 12:26:32 -0200 |
commit | ea14396c455b0816e87abe424275290fc4b09b32 (patch) | |
tree | 3f92e0afad41bb4039adbc2c2bbc6e9b4b9d1096 /activesupport/lib | |
parent | b44e2abd9f65b5d253175e047b1f4c115385d2f3 (diff) | |
download | rails-ea14396c455b0816e87abe424275290fc4b09b32.tar.gz rails-ea14396c455b0816e87abe424275290fc4b09b32.tar.bz2 rails-ea14396c455b0816e87abe424275290fc4b09b32.zip |
replace if ! with unless
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/dependencies.rb | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/secure_random.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb index 09bdb577ad..787437c49a 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -166,7 +166,7 @@ module ActiveSupport #:nodoc: def const_missing(const_name, nesting = nil) klass_name = name.presence || "Object" - if !nesting + unless nesting # We'll assume that the nesting of Foo::Bar is ["Foo::Bar", "Foo"] # even though it might not be, such as in the case of # class Foo::Bar; Baz; end diff --git a/activesupport/lib/active_support/secure_random.rb b/activesupport/lib/active_support/secure_random.rb index 488a7e14a7..368954907f 100644 --- a/activesupport/lib/active_support/secure_random.rb +++ b/activesupport/lib/active_support/secure_random.rb @@ -95,7 +95,7 @@ module ActiveSupport end end - if !defined?(@has_win32) + unless defined?(@has_win32) begin require 'Win32API' |