realogy 0.6.11 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16b4f3e20df302badddd3af150745656f53fc1cbc3ea6457e82bd7ca4eed055c
4
- data.tar.gz: 4a93d40d4c122ad052c2122083aaf2878d1ad466f8e2c68d90da171116e321ac
3
+ metadata.gz: 9a2d6245885bf9792e71bb2089816b5959fb6b7749ec87f254601c4d3896d1d6
4
+ data.tar.gz: 3370e31d672737acbccbf1b2507ef929294f16630dc91c522c75c11249917dea
5
5
  SHA512:
6
- metadata.gz: 6de6ebb0b2ef83481f5d983c0028bb3b0918e450b6099476e863e0b22c63d0b858a7b18abec54d2a7b82c520beffe5218f3b84992070423574e832909300bd42
7
- data.tar.gz: 10c3201b1dd9e24e0bc54ac2d1034266b18c9260278dc227ed3d94ea127cc7e789bb8d648b8a396449bb697028d596a87a57de9e8df67b769667aed2e95ec35c
6
+ metadata.gz: 625d3bdc5529d6530e510efe75b0e391b5a03fa46213de2e7e08a4780a0c44fccb4903abfe76d71caa94920e676a3deb3e8fcab59704840cf297151b2f4ed5bb
7
+ data.tar.gz: 0ffd6581d0e134744e0391f4a27d64bccbc43385525bbeb82bd953cde0e65ff1c0483e84deecc33bf0fd79a09b7b924774333067b71daba3de144e3cff7ac47b
@@ -1,4 +1,4 @@
1
- class Realogy::Entity < ApplicationRecord
1
+ class Realogy::Entity < Object.const_get(Realogy.base_record_class)
2
2
  self.table_name = 'realogy_entities'
3
3
 
4
4
  validates :type, presence: true
@@ -1,3 +1,3 @@
1
1
  module Realogy
2
- VERSION = "0.6.11"
2
+ VERSION = "0.7.0"
3
3
  end
data/lib/realogy.rb CHANGED
@@ -14,4 +14,14 @@ require "realogy/app/jobs/application_job.rb"
14
14
  require "realogy/app/jobs/populate_realogy_entity_job.rb"
15
15
 
16
16
  module Realogy
17
+ class << self
18
+ attr_accessor :base_record_class
19
+
20
+ def configure
21
+ yield self
22
+ end
23
+ end
24
+
25
+ # Default to ApplicationRecord for backward compatibility
26
+ self.base_record_class = 'ApplicationRecord'
17
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: realogy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.11
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Edlund