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

@@ -64,8 +64,6 @@ module ActiveModel
options = attrs.extract_options!
attrs.each do |attr|
attr = attr.to_s
unless method_defined?(attr)
define_method attr do
object.send attr