Do not convert attrs to String until needed

This commit is contained in:
Santiago Pastorino
2013-09-16 10:39:21 -03:00
parent daa9304398
commit f6ea07dd22
2 changed files with 1 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ module ActiveModel
class Serializer
class Association
def initialize(name, options={})
@name = name
@name = name.to_s
@options = options
self.embed = options[:embed] || SETTINGS[:embed]