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

Changeset 8507

Show
Ignore:
Timestamp:
12/29/07 05:06:06 (1 year ago)
Author:
bitsweat
Message:

Ruby 1.9 compat: workaround module_eval bug. Closes #10641 [Frederick Cheung]

Files:

Legend:

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

    r8301 r8507  
    156156                instance_variable_set("@#{name}", class_name.constantize.new(*mapping.collect {|pair| read_attribute(pair.first)})) 
    157157              end 
    158               return instance_variable_get("@#{name}") 
     158              instance_variable_get("@#{name}") 
    159159            end 
    160160          end