1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

quotes are not necessary here

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
Santiago Pastorino 2010-06-23 21:12:51 -03:00 committed by José Valim
parent 81c5684267
commit 497a0c3b00

View file

@ -917,8 +917,8 @@ module ActiveRecord #:nodoc:
def instantiate(record) def instantiate(record)
object = find_sti_class(record[inheritance_column]).allocate object = find_sti_class(record[inheritance_column]).allocate
object.instance_variable_set(:'@attributes', record) object.instance_variable_set(:@attributes, record)
object.instance_variable_set(:'@attributes_cache', {}) object.instance_variable_set(:@attributes_cache, {})
object.instance_variable_set(:@new_record, false) object.instance_variable_set(:@new_record, false)
object.instance_variable_set(:@readonly, false) object.instance_variable_set(:@readonly, false)
object.instance_variable_set(:@destroyed, false) object.instance_variable_set(:@destroyed, false)