lib/logstasher.rb in logstasher-1.1.0 vs lib/logstasher.rb in logstasher-1.1.1
- old
+ new
@@ -65,11 +65,11 @@
def add_custom_fields(&block)
wrapped_block = Proc.new do |fields|
LogStasher::CustomFields.add(*LogStasher.store.keys)
instance_exec(fields, &block)
end
- ::ActionController::Metal.send(:define_method, :logtasher_add_custom_fields_to_payload, &wrapped_block)
- ::ActionController::Base.send(:define_method, :logtasher_add_custom_fields_to_payload, &wrapped_block)
+ ::ActionController::Metal.send(:define_method, :logstasher_add_custom_fields_to_payload, &wrapped_block)
+ ::ActionController::Base.send(:define_method, :logstasher_add_custom_fields_to_payload, &wrapped_block)
end
def add_custom_fields_to_request_context(&block)
wrapped_block = Proc.new do |fields|
instance_exec(fields, &block)