squeel 0.7.3 → 0.7.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.
- data/lib/squeel/nodes/key_path.rb +5 -6
- data/lib/squeel/version.rb +1 -1
- metadata +1 -1
@@ -9,7 +9,11 @@ module Squeel
|
|
9
9
|
include PredicateOperators
|
10
10
|
include Operators
|
11
11
|
|
12
|
-
|
12
|
+
# We need some methods to fall through to the endpoint or create a new
|
13
|
+
# stub of the given name
|
14
|
+
%w(id == != =~ !~).each do |method_name|
|
15
|
+
undef_method method_name if method_defined?(method_name)
|
16
|
+
end
|
13
17
|
|
14
18
|
# @return [Array<Symbol, Stub, Join>] The path
|
15
19
|
attr_reader :path
|
@@ -115,11 +119,6 @@ module Squeel
|
|
115
119
|
self
|
116
120
|
end
|
117
121
|
|
118
|
-
# To let these fall through to the endpoint via method_missing
|
119
|
-
instance_methods.grep(/^(==|=~|!~)$/) do |operator|
|
120
|
-
undef_method operator
|
121
|
-
end
|
122
|
-
|
123
122
|
# For use with equality tests
|
124
123
|
def hash
|
125
124
|
[self.class, endpoint, *path].hash
|
data/lib/squeel/version.rb
CHANGED