Sha256: cc9429a6b6dd28395d505ebca4a66c952d3718929c8fdfdb643788c328d23080

Contents?: true

Size: 425 Bytes

Versions: 4

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

module ActiveFields
  # If value base class has been changed, we should prevent this model from being loaded.
  # Since we cannot remove it entirely, we will not add any functionality to it.
  if ActiveFields.config.value_class_changed?
    class Value; end
  else
    class Value < ApplicationRecord
      self.table_name = "active_fields_values"

      include ValueConcern
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_fields-2.0.0 app/models/active_fields/value.rb
active_fields-1.1.0 app/models/active_fields/value.rb
active_fields-1.0.0 app/models/active_fields/value.rb
active_fields-0.2.0 app/models/active_fields/value.rb