activerecord-extensions 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44c25bfe7af107d8f5983426160690204ccdc4dc
|
4
|
+
data.tar.gz: cd4af3a9edaa9bf394e46d702dbe8cc1f7e03487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fe71a47050ccee63c1ff7b93665d9068e1ee39c72c2bedc8a6b74e68a07dd2f32318930ac70cf7feab1bc33c96f65205115e1d6d6decc9ad424eb504d15764e
|
7
|
+
data.tar.gz: d141144d511cecaf9df50aba598d4b9686d581d5672ec5fd2d42520521cb39832b85d9be7b12edf8223a749e9d9101575445e6f9cfafc70ac454abe43b71f4c5
|
@@ -9,10 +9,9 @@ module ActiverecordExtensions
|
|
9
9
|
where_with_bind(arel_table[attribute].lt(Arel::Nodes::BindParam.new), attribute, value)
|
10
10
|
end
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
end
|
12
|
+
def where_with_bind(clause, attribute, value)
|
13
|
+
where(clause).bind_parameters({attribute => value})
|
14
|
+
end
|
16
15
|
|
17
16
|
end
|
18
17
|
end
|