Sha256: 498ae4c5bb4e26c9c1946ca1fd3f526faad546a0fae7354af1b4d202a5ecfb2c
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
require 'wisper' module ProxES class Listener def method_missing(method, *args, &block) vals = { action: method } vals[:user] = args[0][:user] if (args[0] && args[0].has_key?(:user)) vals[:details] = args[0][:details] if (args[0] && args[0].has_key?(:details)) AuditLog.create vals end def respond_to_missing?(method, include_private = false) true end end end Wisper.subscribe(ProxES::Listener.new)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
proxes-0.3.6 | lib/proxes/listener.rb |