cowtech-rails 1.6.1.3 → 1.6.1.4

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.
@@ -21,7 +21,7 @@ module Cowtech
21
21
  end
22
22
 
23
23
  def self.[](what, only_id = false)
24
- self.__finalize(self.__custom_find(what), only_id)
24
+ self.__finalize(self.__index_find(what), only_id)
25
25
  end
26
26
 
27
27
  def safe_id
@@ -57,8 +57,8 @@ module Cowtech
57
57
  end
58
58
 
59
59
  def ==(other)
60
- if other.class.to_s != self.class.to_s then
61
- self.id == self.class.__custom_find(other).id
60
+ if other && other.class.to_s != self.class.to_s then
61
+ self.id == self.class.__index_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.__custom_find(what)
72
+ def self.__index_find(what)
73
73
  self.find(what)
74
74
  end
75
75
 
@@ -10,7 +10,7 @@ module Cowtech
10
10
  MAJOR = 1
11
11
  MINOR = 6
12
12
  PATCH = 1
13
- BUILD = 3
13
+ BUILD = 4
14
14
 
15
15
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
16
16
  end
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 1
7
7
  - 6
8
8
  - 1
9
- - 3
10
- version: 1.6.1.3
9
+ - 4
10
+ version: 1.6.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Shogun