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.49 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.48 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.47 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.46 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.45 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.44 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.43 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.42 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.41 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.40 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.39 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.38 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.37 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.36 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.35 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.34 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.32 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.31 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.30 lib/active_record_survey/compatibility.rb
active_record_survey-0.1.29 lib/active_record_survey/compatibility.rb