enumerated_field 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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(arel_table[field_name].not_eq(key))
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
 
@@ -1,3 +1,3 @@
1
1
  module EnumeratedField
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enumerated_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: