Save a string allocation for each attribute method call
This commit is contained in:
parent
d3e6eea755
commit
1e209d71b0
|
@ -375,6 +375,7 @@ module ActiveModel
|
|||
end
|
||||
|
||||
mod.module_eval <<-RUBY, __FILE__, __LINE__ + 1
|
||||
# frozen_string_literal: true
|
||||
#{defn}
|
||||
#{body}
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue