Sha256: c3cc2d17ea46920ac6129a55480c69cd899f08976fe27fc1e7e142502e8f3886
Contents?: true
Size: 563 Bytes
Versions: 2
Compression:
Stored size: 563 Bytes
Contents
require "active_support/notifications" require "pay_u" require "pay_u_rails/errors" require "pay_u_rails/engine" if defined?(Rails) module PayURails class Confirmation EVENT = PayU::Confirmation::EVENT end class Response EVENT = PayU::Response::EVENT end def self.instrument(event, payload) ActiveSupport::Notifications.instrument(event, payload) end def self.subscribe(event, callable = Proc.new) ActiveSupport::Notifications.subscribe(event) do |*args| callable.call(args.extract_options![:resource]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
payu-latam-rails-1.0.3 | lib/pay_u_rails.rb |
payu-latam-rails-1.0.2 | lib/pay_u_rails.rb |