Skip to content

Commit

Permalink
Fix issue caused by merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Connor committed Sep 9, 2013
1 parent c9b7928 commit e3d5b1f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion activerecord-postgres-array.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = "activerecord-postgres-array"
s.version = "0.0.9"
s.version = "0.0.10"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Tim Connor"]
Expand Down
2 changes: 0 additions & 2 deletions lib/activerecord-postgres-array/activerecord.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ def arel_attributes_values(include_primary_key = true, include_readonly_attribut
value = read_attribute(name)
if column.type.to_s =~ /_array$/ && value && value.is_a?(Array)
value = "'#{value.to_postgres_array(new_record?)}'"
elsif defined?(::Hstore) && column.type == :hstore && value && value.is_a?(Hash)
value = value.to_hstore
elsif klass.serialized_attributes.include?(name)
value = @attributes[name].serialized_value
end
Expand Down

0 comments on commit e3d5b1f

Please sign in to comment.