Sha256: c43c0beb5666b4ca5083e8769f217008157e229e83b289737003a4a9ebb139b6

Contents?: true

Size: 595 Bytes

Versions: 1

Compression:

Stored size: 595 Bytes

Contents

require 'calculated_attributes/version'
require 'active_record'

# Include patches.
require 'calculated_attributes/rails_patches'
require 'calculated_attributes/arel_patches'
raise "Unsupported ActiveRecord version: #{ActiveRecord::VERSION::MAJOR}" unless [3, 4, 5].include? ActiveRecord::VERSION::MAJOR

if Gem::Version.new(ActiveRecord::VERSION::STRING) <= Gem::Version.new('5.1.4')
  require "calculated_attributes/rails_#{ActiveRecord::VERSION::MAJOR}_patches"
else
  require 'calculated_attributes/rails_5_2_patches'
end

# Include model code.
require 'calculated_attributes/model_methods'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
calculated_attributes-0.3.0 lib/calculated_attributes.rb