cowtech-rails 1.6.1.2 → 1.6.1.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ module Cowtech
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.[](what, only_id = false)
|
24
|
-
self.__finalize(self.
|
24
|
+
self.__finalize(self.__custom_find(what), only_id)
|
25
25
|
end
|
26
26
|
|
27
27
|
def safe_id
|
@@ -58,7 +58,7 @@ module Cowtech
|
|
58
58
|
|
59
59
|
def ==(other)
|
60
60
|
if other.class.to_s != self.class.to_s then
|
61
|
-
self.id == self.class.
|
61
|
+
self.id == self.class.__custom_find(other).id
|
62
62
|
else
|
63
63
|
super
|
64
64
|
end
|
@@ -69,7 +69,7 @@ module Cowtech
|
|
69
69
|
end
|
70
70
|
|
71
71
|
private
|
72
|
-
def self.
|
72
|
+
def self.__custom_find(what)
|
73
73
|
self.find(what)
|
74
74
|
end
|
75
75
|
|
data/lib/cowtech/version.rb
CHANGED