lib/timber/events/custom.rb in timber-1.1.2 vs lib/timber/events/custom.rb in timber-1.1.3

- old
+ new

@@ -24,10 +24,10 @@ @message = attributes[:message] || raise(ArgumentError.new(":message is required")) @data = attributes[:data] end def to_hash - {type => data} + {Timber::Object.try(type, :to_sym) => data} end alias to_h to_hash def as_json(_options = {}) {:custom => to_hash} \ No newline at end of file