Skip to content

Commit

Permalink
Merge pull request #880 from omniauth/hashie
Browse files Browse the repository at this point in the history
Temporary Hashie Regression Fix
  • Loading branch information
tmilewski committed Feb 11, 2017
2 parents 2dccbb5 + df7699d commit 6abedb0
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/omniauth/key_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ 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
# 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
end

# Disable on loading of the class
Expand Down

0 comments on commit 6abedb0

Please sign in to comment.