module PayURails

Constants

VERSION

Public Class Methods

instrument(event, payload) click to toggle source
# File lib/pay_u_rails.rb, line 16
def self.instrument(event, payload)
  ActiveSupport::Notifications.instrument(event, payload)
end
subscribe(event, callable = Proc.new) click to toggle source
# File lib/pay_u_rails.rb, line 21
def self.subscribe(event, callable = Proc.new)
  ActiveSupport::Notifications.subscribe(event) do |*args|
    callable.call(args.extract_options![:resource])
  end
end