Sha256: 6d2af6d1bb50aa5899eb95d87b6c44c98690ec6f2d642f6f0dfd00bb6063d4eb

Contents?: true

Size: 516 Bytes

Versions: 2

Compression:

Stored size: 516 Bytes

Contents

require 'jive/oauth_token/version'

module Jive
	class OauthToken < 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-oauth_token-0.0.4 lib/jive/oauth_token/compatibility.rb
jive-oauth_token-0.0.3 lib/jive/oauth_token/compatibility.rb