Skip to content

Commit e3d5b1f

Browse files
author
Tim Connor
committed
Fix issue caused by merge
1 parent c9b7928 commit e3d5b1f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

activerecord-postgres-array.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = "activerecord-postgres-array"
3-
s.version = "0.0.9"
3+
s.version = "0.0.10"
44

55
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
66
s.authors = ["Tim Connor"]

lib/activerecord-postgres-array/activerecord.rb

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ def arel_attributes_values(include_primary_key = true, include_readonly_attribut
1616
value = read_attribute(name)
1717
if column.type.to_s =~ /_array$/ && value && value.is_a?(Array)
1818
value = "'#{value.to_postgres_array(new_record?)}'"
19-
elsif defined?(::Hstore) && column.type == :hstore && value && value.is_a?(Hash)
20-
value = value.to_hstore
2119
elsif klass.serialized_attributes.include?(name)
2220
value = @attributes[name].serialized_value
2321
end

0 commit comments

Comments
 (0)