Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

with Struct.new all initialize args are optional - make it more so fo…

…r IndexDef
  • Loading branch information...
commit 8017efae6f08c2c4bc01889252e95abb9f1853ca 1 parent 8c783d6
@kares kares authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/arjdbc/postgresql/adapter.rb
View
2  lib/arjdbc/postgresql/adapter.rb
@@ -1220,7 +1220,7 @@ def table_exists?(name)
# NOTE: make sure we accept 6 arguments (>= 3.2) as well as 5 (<= 3.1) :
# allow 6 on 3.1 : Struct.new(:table, :name, :unique, :columns, :lengths)
IndexDefinition.class_eval do
- def initialize(table, name, unique, columns, lengths, orders = nil)
+ def initialize(table, name, unique = nil, columns = nil, lengths = nil, orders = nil)
super(table, name, unique, columns, lengths) # @see {#indexes}
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.