switchman 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/switchman/active_record/attribute_methods.rb +0 -14
- data/lib/switchman/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35156353c0e52e42bbd52b37cf2733d7c0acb6736e676ddac31156ce2b133335
|
4
|
+
data.tar.gz: 6406ba00901ecc5c17271e0b30d77c4ccf739db9cd589e153dae77102cb036fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd9e7047f1a19dbde96372f944441ea181952480050218fa24b12d7a5aea4fef4a153a2fa44c5e3eae601ac308ab4c312a3e1bbfffe92e68bbffafc5d31c4051
|
7
|
+
data.tar.gz: e6a34fe7f23e07865eccb6aab6722f07f97b12e561057406c55e0c7d905c9eea85be50fd197c679f9ab3c8a72c28644d4e96eb6d2c5c8eab8ad8ac42de895840
|
@@ -256,20 +256,6 @@ module Switchman
|
|
256
256
|
attribute(attr_name)
|
257
257
|
end
|
258
258
|
end
|
259
|
-
|
260
|
-
private
|
261
|
-
|
262
|
-
def connection_class_for_self_for_reflection(reflection)
|
263
|
-
if reflection
|
264
|
-
if reflection.options[:polymorphic]
|
265
|
-
read_attribute(reflection.foreign_type)&.constantize&.connection_class_for_self
|
266
|
-
else
|
267
|
-
reflection.klass.connection_class_for_self
|
268
|
-
end
|
269
|
-
else
|
270
|
-
self.class.connection_class_for_self
|
271
|
-
end
|
272
|
-
end
|
273
259
|
end
|
274
260
|
end
|
275
261
|
end
|
data/lib/switchman/version.rb
CHANGED