Sha256: 106640556770f04e59ee871fa1e0f88ce2f6b72c9ed51547bbeab39be3cf0b2d

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 Bytes

Contents

require 'jive/webhook/version'

module Jive
	class Webhook < ActiveRecord::Base
		module Compatibility
			if ActiveSupport::VERSION::MAJOR >= 4
				require 'active_support/proxy_object'

				def self.executable_prefix
					'bin'
				end

				def self.proxy_object_class
					ActiveSupport::ProxyObject
				end
			else
				require 'active_support/basic_object'

				def self.executable_prefix
					'script'
				end

				def self.proxy_object_class
					ActiveSupport::BasicObject
				end
			end
		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jive-webhook-0.0.2 lib/jive/webhook/compatibility.rb
jive-webhook-0.0.1 lib/jive/webhook/compatibility.rb