ArgumentError in WebHook with httparty 0.12.0
Created by: ghost
I was unable to create projects, look system hooks.
Gitlab with httparty 0.12.0 to overwrite logger method in ActiveRecord::Base.
https://github.com/gitlabhq/gitlabhq/blob/master/app/models/web_hook.rb#L18 https://github.com/jnunemaker/httparty/blob/v0.12.0/lib/httparty.rb#L80
I settled to use httparty 0.11.0. what to be a present better solution?
$ RAILS_ENV=production rails c
Loading production environment (Rails 3.2.16)
irb(main):001:0> SystemHook.all
ArgumentError: wrong number of arguments (0 for 1..3)
from /var/lib/git/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/httparty-0.12.0/lib/httparty.rb:80:in `logger'
from /var/lib/git/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/relation/delegation.rb:14:in `block in logger'
from /var/lib/git/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/relation.rb:241:in `block in scoping'
from /var/lib/git/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/scoping.rb:98:in `with_scope'
from /var/lib/git/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/relation.rb:241:in `scoping'
from /var/lib/git/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/relation/delegation.rb:14:in `logger'
from /var/lib/git/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/explain.rb:26:in `logging_query_plan'
from /var/lib/git/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/relation.rb:159:in `to_a'
from /var/lib/git/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/relation/finder_methods.rb:159:in `all'
from /var/lib/git/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.16/lib/active_record/querying.rb:5:in `all'
from (irb):4
from /var/lib/git/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/commands/console.rb:47:in `start'
from /var/lib/git/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/commands/console.rb:8:in `start'
from /var/lib/git/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'