Sha256: 420cdc54fb38e05480ccd9a2a976ca018a2bfb096f79158b80c389ffb4033628

Contents?: true

Size: 387 Bytes

Versions: 5

Compression:

Stored size: 387 Bytes

Contents

#
#=ActiveRecord::Turntable::Compatible
#
# for ActiveRecord versions compatibility
#
module ActiveRecord::Turntable
  module Compatible
    extend ActiveSupport::Concern

    included do
      # class_attributes
      unless respond_to?(:class_attribute)
        class << self
          alias_method :class_attribute, :class_inheritable_accessor
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activerecord-turntable-1.1.2 lib/active_record/turntable/compatible.rb
activerecord-turntable-1.1.1 lib/active_record/turntable/compatible.rb
activerecord-turntable-1.1.0 lib/active_record/turntable/compatible.rb
activerecord-turntable-1.0.1 lib/active_record/turntable/compatible.rb
activerecord-turntable-1.0.0 lib/active_record/turntable/compatible.rb