Browse files

quotes are not necessary here

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 81c5684 commit 497a0c3b00cc225215a8744bbf2a7e04c7297b7c @spastorino spastorino committed with josevalim Jun 23, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/base.rb
View
4 activerecord/lib/active_record/base.rb
@@ -917,8 +917,8 @@ def arel_engine
def instantiate(record)
object = find_sti_class(record[inheritance_column]).allocate
- object.instance_variable_set(:'@attributes', record)
- object.instance_variable_set(:'@attributes_cache', {})
+ object.instance_variable_set(:@attributes, record)
+ object.instance_variable_set(:@attributes_cache, {})
object.instance_variable_set(:@new_record, false)
object.instance_variable_set(:@readonly, false)
object.instance_variable_set(:@destroyed, false)

0 comments on commit 497a0c3

Please sign in to comment.