Sha256: f7a4796b8ed937972316b140e59a67e0942e85deca85bf13305343d277c1079b

Contents?: true

Size: 522 Bytes

Versions: 1

Compression:

Stored size: 522 Bytes

Contents

require 'micro_service/client/version'

module MicroService
	class Client < ::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

1 entries across 1 versions & 1 rubygems

Version Path
micro_service-client-0.0.1 lib/micro_service/client/compatibility.rb