Sha256: d764f1c075bf6d5a82119dc545d54d0099f96fbe6fae76b7946e8a3a81993bfc

Contents?: true

Size: 471 Bytes

Versions: 48

Compression:

Stored size: 471 Bytes

Contents

require 'active_record_survey/version'

module ActiveRecordSurvey
	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

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
active_record_survey-0.1.7 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.6 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.5 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.4 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.3 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.2 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.1 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.0 lib/active_record_survey/compatibility.rb