Skip to content

Commit

Permalink
Fix PostgreSQL array type casting
Browse files Browse the repository at this point in the history
  • Loading branch information
donbobka authored and Vladimir Lyzo committed Jan 11, 2015
1 parent 664f149 commit c596d0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/activeuuid/patches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ def quote_with_visiting(value, column = nil)
quote_without_visiting(value, column)
end

def type_cast_with_visiting(value, column = nil)
def type_cast_with_visiting(value, column = nil, *args)
value = UUIDTools::UUID.serialize(value) if column && column.type == :uuid
value = value.to_s if value.is_a? UUIDTools::UUID
type_cast_without_visiting(value, column)
type_cast_without_visiting(value, column, *args)
end

def native_database_types_with_pguuid
Expand Down

0 comments on commit c596d0a

Please sign in to comment.