Save a string allocation for each attribute method call

This commit is contained in:
Jean Boussier 2020-01-30 20:36:14 +01:00
parent d3e6eea755
commit 1e209d71b0
1 changed files with 1 additions and 0 deletions

View File

@ -375,6 +375,7 @@ module ActiveModel
end
mod.module_eval <<-RUBY, __FILE__, __LINE__ + 1
# frozen_string_literal: true
#{defn}
#{body}
end