Skip to content

Commit

Permalink
Ruby 1.9.2 compat: Array#* uses to_str instead of to_s to join values…
Browse files Browse the repository at this point in the history
… since Ruby 1.9.2

[#2959 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
amatsuda authored and jeremy committed Aug 6, 2009
1 parent 5a0e295 commit 8dab61d
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -277,7 +277,6 @@ def to_sql
add_column_options!(column_sql, column_options) unless type.to_sym == :primary_key
column_sql
end
alias to_s :to_sql

private

Expand Down Expand Up @@ -508,7 +507,7 @@ def references(*args)
# concatenated together. This string can then be prepended and appended to
# to generate the final SQL to create the table.
def to_sql
@columns * ', '
@columns.map(&:to_sql) * ', '
end

private
Expand Down

0 comments on commit 8dab61d

Please sign in to comment.