cowtech-rails 1.6.1.4 → 1.6.1.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -56,18 +56,10 @@ module Cowtech
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
def
|
60
|
-
|
61
|
-
self.id == self.class.__index_find(other).id
|
62
|
-
else
|
63
|
-
super
|
64
|
-
end
|
59
|
+
def is?(other)
|
60
|
+
other ? (self.id == self.class.__index_find(other).id) : false
|
65
61
|
end
|
66
62
|
|
67
|
-
def !=(other)
|
68
|
-
! (self == other)
|
69
|
-
end
|
70
|
-
|
71
63
|
private
|
72
64
|
def self.__index_find(what)
|
73
65
|
self.find(what)
|
data/lib/cowtech/version.rb
CHANGED