30 May '17, 5pm

@nateberkopec Add a sql subscriber and check for inserts?

ActiveSupport::Subscriber is an object set to consume ActiveSupport::Notifications . The subscriber dispatches notifications to a registered object based on its given namespace. An example would be Active Record subscriber responsible for collecting statistics about queries: module ActiveRecord class StatsSubscriber < ActiveSupport :: Subscriber def sql ( event ) Statsd . timing (" sql.#{event.payload[:name]} ", event . duration ) end end end And it’s finally registered as: ActiveRecord :: StatsSubscriber . attach_to :active_record Since we need to know all instance methods before attaching the log subscriber, the line above should be called after your subscriber definition. After configured, whenever a “sql.active_record” notification is published, it will properly dispatch the event (ActiveSupport::Notifications::Event ) to the sql method. Show files where this class is ...

Full article: https://apidock.com/rails/ActiveSupport/Subscriber

Tweets

Xpax is offering freebies and double data add-ons this Raya

Xpax is offering freebies and double data add-o...

soyacincau.com 29 May '17, 6am

Xpax is offering freebies and double data add-ons this Raya Posted: May 29, 2017 By: Alexander Wong No comments Celcom is ...

via @BTCTN

via @BTCTN

news.bitcoin.com 29 May '17, 10am

Bitpoint has recently partnered with Peach Aviation to provide bitcoin payment tech to the company, and now plans to do th...

Japan's BITPoint to Add Bitcoin Payments to Ret...

bloomberg.com 29 May '17, 3am

BITPoint Japan Co. , the company behind Peach Aviation Ltd. ’s move to let travelers use bitcoin to pay for tickets , is p...