public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Search Repo:
Don't implicitly assign instance variables by using them as block 
arguments

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7691 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
jeremy (author)
Sat Sep 29 23:22:39 -0700 2007
commit  e5a60fb2bfe0c15c297af88c19690788b00109d0
tree    2d2abbc95c2880dd3a8459abbf0cb060e2964815
parent  c9bfd7d543813150d0f87f246f8f39e675a9c3d4
...
285
286
287
288
 
 
289
290
291
...
285
286
287
 
288
289
290
291
292
0
@@ -285,7 +285,8 @@
0
 
0
         def copy_table(from, to, options = {}) #:nodoc:
0
           options = options.merge(:id => !columns(from).detect{|c| c.name == 'id'}.nil?)
0
- create_table(to, options) do |@definition|
0
+ create_table(to, options) do |definition|
0
+ @definition = definition
0
             columns(from).each do |column|
0
               column_name = options[:rename] ?
0
                 (options[:rename][column.name] ||

Comments

    No one has commented yet.