Skip to content

Commit

Permalink
Revert temporary Hashie fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilewski committed Feb 11, 2017
1 parent 4ae1a06 commit 7f7a294
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions lib/omniauth/key_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ def self.override_logging
require 'hashie/version'
return unless Gem::Version.new(Hashie::VERSION) >= Gem::Version.new('3.5.0')

# if respond_to?(:disable_warnings)
# disable_warnings
# else
# define_method(:log_built_in_message) { |*| }
# private :log_built_in_message
# end

define_method(:log_built_in_message) { |*| }
private :log_built_in_message
if respond_to?(:disable_warnings)
disable_warnings
else
define_method(:log_built_in_message) { |*| }
private :log_built_in_message
end
end

# Disable on loading of the class
Expand Down

0 comments on commit 7f7a294

Please sign in to comment.