Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'restclient'
- # RestClient logs using << which isn't supported by the Rails logger,
- # so wrap it up with a little proxy object.
- RestClient.log =
- Object.new.tap do |proxy|
- def proxy.<<(message)
- Rails.logger.info message
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement