Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7691

Show
Ignore:
Timestamp:
09/30/07 06:22:39 (1 year ago)
Author:
bitsweat
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb

    r7563 r7691  
    286286        def copy_table(from, to, options = {}) #:nodoc: 
    287287          options = options.merge(:id => !columns(from).detect{|c| c.name == 'id'}.nil?) 
    288           create_table(to, options) do |@definition| 
     288          create_table(to, options) do |definition| 
     289            @definition = definition 
    289290            columns(from).each do |column| 
    290291              column_name = options[:rename] ?