Skip to content

Commit c8d9f4e

Browse files
authored
Merge pull request #566 from bugsnag/next
Release 6.12.1
2 parents 2fbc548 + 0e704d3 commit c8d9f4e

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
Changelog
22
=========
33

4+
## 6.12.1 (05 Sep 2019)
5+
6+
### Fixes
7+
8+
* Account for missing `:binds` key in `sql.active_record` ActiveSupport notifications.
9+
| [#555](https://github.com/bugsnag/bugsnag-ruby/issues/555)
10+
| [#565](https://github.com/bugsnag/bugsnag-ruby/pull/565)
11+
* Remove duplicate attribute declaration warning for `track_sessions` in Configuration.
12+
| [#510](https://github.com/bugsnag/bugsnag-ruby/pull/510)
13+
| [pocke](https://github.com/pocke)
14+
415
## 6.12.0 (28 Aug 2019)
516

617
### Enhancements

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.12.0
1+
6.12.1

lib/bugsnag/configuration.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class Configuration
3737
attr_accessor :runtime_versions
3838
attr_accessor :ignore_classes
3939
attr_accessor :auto_capture_sessions
40-
attr_accessor :track_sessions
4140

4241
##
4342
# @return [String] URL error notifications will be delivered to

lib/bugsnag/integrations/railtie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def event_subscription(event)
7979
filtered_data = data.slice(*event[:allowed_data])
8080
filtered_data[:event_name] = event[:id]
8181
filtered_data[:event_id] = event_id
82-
if event[:id] == "sql.active_record"
82+
if event[:id] == "sql.active_record" && data.key?(:binds)
8383
binds = data[:binds].each_with_object({}) { |bind, output| output[bind.name] = '?' if defined?(bind.name) }
8484
filtered_data[:binds] = JSON.dump(binds) unless binds.empty?
8585
end

0 commit comments

Comments
 (0)