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

Version Path
skylight-0.1.7.alpha1 lib/skylight/compat.rb
skylight-0.1.6 lib/skylight/compat.rb
skylight-0.1.6.alpha3 lib/skylight/compat.rb
skylight-0.1.6.alpha1 lib/skylight/compat.rb
skylight-0.1.5 lib/skylight/compat.rb
skylight-0.1.5.alpha2 lib/skylight/compat.rb
skylight-0.1.5.alpha1 lib/skylight/compat.rb
skylight-0.1.4 lib/skylight/compat.rb
skylight-0.1.4.alpha3 lib/skylight/compat.rb
skylight-0.1.4.alpha2 lib/skylight/compat.rb
skylight-0.1.4.alpha1 lib/skylight/compat.rb
skylight-0.1.3 lib/skylight/compat.rb
skylight-0.1.2 lib/skylight/compat.rb
skylight-0.1.1 lib/skylight/compat.rb
skylight-0.1.0 lib/skylight/compat.rb
skylight-0.1.0.alpha2 lib/skylight/compat.rb
skylight-0.1.0.alpha1 lib/skylight/compat.rb