forceps 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/forceps/client.rb +3 -3
- data/lib/forceps/version.rb +1 -1
- data/test/dummy/db/remote.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +3965 -0
- metadata +4 -4
data/lib/forceps/client.rb
CHANGED
@@ -57,17 +57,17 @@ module Forceps
|
|
57
57
|
|
58
58
|
if Rails::VERSION::MAJOR >= 4
|
59
59
|
def self.instantiate(record, column_types = {})
|
60
|
-
|
60
|
+
__make_sti_column_point_to_forceps_remote_class(record)
|
61
61
|
super
|
62
62
|
end
|
63
63
|
else
|
64
64
|
def self.instantiate(record)
|
65
|
-
|
65
|
+
__make_sti_column_point_to_forceps_remote_class(record)
|
66
66
|
super
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
def self.
|
70
|
+
def self.__make_sti_column_point_to_forceps_remote_class(record)
|
71
71
|
if record[inheritance_column].present?
|
72
72
|
record[inheritance_column] = "Forceps::Remote::#{record[inheritance_column]}"
|
73
73
|
end
|
data/lib/forceps/version.rb
CHANGED
Binary file
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|