Sha256: 4176afd91d544257f0891f700a9182faf29a562690e1624a22de18fb593bae3f
Contents?: true
Size: 380 Bytes
Versions: 1
Compression:
Stored size: 380 Bytes
Contents
module Ixtlan module Audit class AuditRack def initialize(app) @app = app self.class_eval do include Rails.application.routes.url_helpers end end def call(env) result = @app.call(env) p audits_path ::Rails.application.config.audit_manager.save_all result end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ixtlan-audit-0.1.0 | lib/ixtlan/audit/audit_rack.rb |