Sha256: 6326eae58c05d437c1913d05933dd9e30be69ddfd12a21fb9c2878503f99e0a4

Contents?: true

Size: 350 Bytes

Versions: 9

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

require "active_record"
require "active_support/inflector"
require "active_model_serializers"

$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

9 entries across 9 versions & 1 rubygems

Version Path
has_calculated_fields-1.0.3.6 lib/has_calculated_fields.rb
has_calculated_fields-1.0.3.5 lib/has_calculated_fields.rb
has_calculated_fields-1.0.3.4 lib/has_calculated_fields.rb
has_calculated_fields-1.0.3.2 lib/has_calculated_fields.rb
has_calculated_fields-1.0.3.1 lib/has_calculated_fields.rb
has_calculated_fields-1.0.3 lib/has_calculated_fields.rb
has_calculated_fields-1.0.2 lib/has_calculated_fields.rb
has_calculated_fields-1.0.1 lib/has_calculated_fields.rb
has_calculated_fields-1.0.0 lib/has_calculated_fields.rb