mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Do not convert attrs to String until needed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user