diff options
| author | Alexandre Filipe Campos <alexandre@talkdesk.com> | 2017-03-01 12:13:50 +0000 |
|---|---|---|
| committer | Michael Herold <github@michaeljherold.com> | 2017-03-01 06:13:50 -0600 |
| commit | 9f965feb3793c45007030bfb62f9df277d647a28 (patch) | |
| tree | 5821d77ca513fb88d2ce2674383eb4f52ff4258b /lib | |
| parent | 846ce0de72b0625e2c76c28b7cfc8788e82a40e1 (diff) | |
| download | hashie-9f965feb3793c45007030bfb62f9df277d647a28.tar.gz | |
Fix "@disable_warnings" spec warning (#416)
When running rspec specs on the ruby-grape project with warnings enabled
this warning is printed hundreds of times.
This change fixes the warning.
Also, turn on warnings when running rspec to see when this happens.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/hashie/mash.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hashie/mash.rb b/lib/hashie/mash.rb index 390a731..aee6d04 100644 --- a/lib/hashie/mash.rb +++ b/lib/hashie/mash.rb @@ -83,7 +83,7 @@ module Hashie # @api semipublic # @return [Boolean] def self.disable_warnings? - !!@disable_warnings + @disable_warnings ||= false end # Inheritance hook that sets class configuration when inherited. |
