backframe 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/backframe/activerecord/acts_as_enum.rb +2 -2
- data/lib/backframe/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e529a26c3cbb16f7d83f915b683b34f3e5bcda1
|
4
|
+
data.tar.gz: 7bd6df514bf432abc3dcf49f5e7433bf1912399e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc67fc81127e6656d2609b79aa23a90a9c36ddb220e8c391e0397f6bebde978d91b7d7fa0e67a1242380e2e830d76afbb4d16af184419e469e4272eb6258bb6a
|
7
|
+
data.tar.gz: 588a8dbd70ab692476712e1d44ddd450b4750b715e2a33250b7981c29e02447d63857557840c662133f14ba952b1dcd9d0ae560f7d9c1fcf66dbdcf4ea120da5
|
@@ -41,7 +41,7 @@ module Backframe
|
|
41
41
|
scope :#{field}_is, -> (*options) { where('#{field} IN (?)', (options.is_a?(Array) ? options : [options])) }
|
42
42
|
|
43
43
|
def #{field}_is?(*options)
|
44
|
-
(options.is_a?(Array) ? options : [options]).include?(self.#{field})
|
44
|
+
(options.is_a?(Array) ? options : [options]).map(&:to_s).include?(self.#{field})
|
45
45
|
end
|
46
46
|
EOV
|
47
47
|
|
@@ -49,7 +49,7 @@ module Backframe
|
|
49
49
|
scope :#{field}_not, -> (*options) { where('#{field} NOT IN (?)', (options.is_a?(Array) ? options : [options])) }
|
50
50
|
|
51
51
|
def #{field}_not?(*options)
|
52
|
-
!(options.is_a?(Array) ? options : [options]).include?(self.#{field})
|
52
|
+
!(options.is_a?(Array) ? options : [options]).map(&:to_s).include?(self.#{field})
|
53
53
|
end
|
54
54
|
EOV
|
55
55
|
|
data/lib/backframe/version.rb
CHANGED