lib/bullet.rb in bullet-5.2.0 vs lib/bullet.rb in bullet-5.2.1
- old
+ new
@@ -164,12 +164,13 @@
end
responses.join( "\n" )
end
def perform_out_of_channel_notifications(env = {})
+ request_uri = env['REQUEST_URI'] || build_request_uri(env)
for_each_active_notifier_with_notification do |notification|
- notification.url = env['REQUEST_URI']
+ notification.url = request_uri
notification.notify_out_of_channel
end
end
def footer_info
@@ -213,9 +214,17 @@
UniformNotifier.active_notifiers.each do |notifier|
notification_collector.collection.each do |notification|
notification.notifier = notifier
yield notification
end
+ end
+ end
+
+ def build_request_uri(env)
+ if env['QUERY_STRING'].present?
+ "#{env['PATH_INFO']}?#{env['QUERY_STRING']}"
+ else
+ env['PATH_INFO']
end
end
end
end