enumerated_field 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/enumerated_field.rb +1 -1
- data/lib/enumerated_field/version.rb +1 -1
- metadata +1 -1
data/lib/enumerated_field.rb
CHANGED
@@ -90,7 +90,7 @@ module EnumeratedField
|
|
90
90
|
if defined? ActiveRecord::Base and ancestors.include? ActiveRecord::Base
|
91
91
|
values_hash.keys.each do |key|
|
92
92
|
scope "#{field_name}_#{key}", where(field_name => key)
|
93
|
-
scope "#{field_name}_not_#{key}", where(
|
93
|
+
scope "#{field_name}_not_#{key}", where("#{quoted_table_name}.#{connection.quote_column_name(field_name)} != ?", key)
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|