backframe 0.0.14 → 0.0.15
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: 5a0cb7ec694d7cec60f2069d51291a8f25d5cefd
|
4
|
+
data.tar.gz: 210c8c8c45b6f3a0b1d3371de9c5b86b79c66409
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52cb91c7381a0c3fe2a2165d447dac083edf2ecc68e82f4e6362d383e570246ae8e9e2fb64f0f50681860cd8b4a93aa3d8f58aa6c18ade85cb6bd95924f608eb
|
7
|
+
data.tar.gz: a61d905b0fa3d8b4dda1abbba84eb44fb13a4b0f01d6ca8c9d0cdfad96bdc738b5230fba0db87f935ab87f77bd6b08041c7ea2d9ba54f9f2901df7e008a06a28
|
@@ -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]).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]).include?(self.#{field})
|
53
53
|
end
|
54
54
|
EOV
|
55
55
|
|
data/lib/backframe/version.rb
CHANGED