lib/timber/events/custom.rb in timber-1.1.3 vs lib/timber/events/custom.rb in timber-1.1.4
- old
+ new
@@ -24,10 +24,10 @@
@message = attributes[:message] || raise(ArgumentError.new(":message is required"))
@data = attributes[:data]
end
def to_hash
- {Timber::Object.try(type, :to_sym) => data}
+ {Timber::Util::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