bitmask_attributes 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -108,8 +108,8 @@ module BitmaskAttributes
|
|
108
108
|
{:conditions => sets.join(' AND ')}
|
109
109
|
end
|
110
110
|
}
|
111
|
-
scope :without_#{attribute}, :conditions => "#{attribute}
|
112
|
-
scope :no_#{attribute}, :conditions => "#{attribute}
|
111
|
+
scope :without_#{attribute}, :conditions => "#{attribute} = 0 OR #{attribute} IS NULL"
|
112
|
+
scope :no_#{attribute}, :conditions => "#{attribute} = 0 OR #{attribute} IS NULL"
|
113
113
|
)
|
114
114
|
values.each do |value|
|
115
115
|
model.class_eval %(
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: bitmask_attributes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Joel Moss
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-07-
|
13
|
+
date: 2011-07-05 00:00:00 +01:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|