Sha256: 11ac4c7e2f59562e58d1d64a0ae414884dc060ac9637871c74553defacdfcf13

Contents?: true

Size: 522 Bytes

Versions: 3

Compression:

Stored size: 522 Bytes

Contents

require 'micro_service/server/version'

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

3 entries across 3 versions & 1 rubygems

Version Path
micro_service-server-0.0.3 lib/micro_service/server/compatibility.rb
micro_service-server-0.0.2 lib/micro_service/server/compatibility.rb
micro_service-server-0.0.1 lib/micro_service/server/compatibility.rb