Skip to content

Commit

Permalink
Silence Hashie warnings
Browse files Browse the repository at this point in the history
Hashie is raising the warning `WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#keys defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.` more than 30 times, flooding the logs.
  • Loading branch information
wa0x6e authored May 5, 2017
1 parent de002b5 commit 038a33b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/simplefeed.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require 'hashie/extensions/symbolize_keys'
require 'simplefeed/version'

Hashie.logger = Logger.new(nil)

::Dir.glob(::File.expand_path('../simplefeed/*.rb', __FILE__)).each { |f| require_relative(f) }

require 'simplefeed/providers/redis'
Expand Down

1 comment on commit 038a33b

@rromanchuk
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kigster @wa0x6e immediately after running bundle install, my rails console boot is now failing with simplefeed.rb:4:in

': undefined method logger=' for Hashie:Module (NoMethodError)

Which seems very bizarre, it must be something unique to my setup. I'll try to hunt this down and will follow up.

Please sign in to comment.