Permalink
Browse files

Don't implicitly assign instance variables by using them as block arg…

…uments

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent c9bfd7d commit e5a60fb2bfe0c15c297af88c19690788b00109d0 @jeremy jeremy committed Sep 30, 2007
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
@@ -285,7 +285,8 @@ def move_table(from, to, options = {}, &block) #:nodoc:
def copy_table(from, to, options = {}) #:nodoc:
options = options.merge(:id => !columns(from).detect{|c| c.name == 'id'}.nil?)
- create_table(to, options) do |@definition|
+ create_table(to, options) do |definition|
+ @definition = definition
columns(from).each do |column|
column_name = options[:rename] ?
(options[:rename][column.name] ||

0 comments on commit e5a60fb

Please sign in to comment.