Sha256: 78644a9de6d1ee575277f8c51878a5e288d23b5ca73ff4ad659fcc26bc944e71

Contents?: true

Size: 315 Bytes

Versions: 2

Compression:

Stored size: 315 Bytes

Contents

# frozen_string_literal: true

require "active_record"
require "active_support/inflector"

$LOAD_PATH.unshift(File.dirname(__FILE__))

module HasCalculatedFields
  if defined?(ActiveRecord::Base)
    require "has_calculated_fields/has_calculated_fields"

    ActiveRecord::Base.extend HasCalculatedFields
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
has_calculated_fields-1.0.3.8 lib/has_calculated_fields.rb
has_calculated_fields-1.0.3.7 lib/has_calculated_fields.rb