Sha256: 267c1da538add84e96572963a22187bbb399f10527af034d96617f8f5c0ff1ff
Contents?: true
Size: 693 Bytes
Versions: 17
Compression:
Stored size: 693 Bytes
Contents
module Skylight # Ensure the version of AS:N being used is recent enough begin # Attempt to reference an internal class ActiveSupport::Notifications::Fanout::Subscribers rescue NameError # If the class is missing, require our vendored AS::N require 'skylight/vendor/active_support/notifications' end end if defined?(ActiveSupport::Notifications::Fanout::Subscribers::Evented) # Handle early RCs of rails 4.0 class ActiveSupport::Notifications::Fanout::Subscribers::Evented unless method_defined?(:publish) def publish(name, *args) if @delegate.respond_to?(:publish) @delegate.publish name, *args end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems