Friday, September 30, 2022
ERB in YAML keys, efficiency boosts, a brand new possibility for QueryLogs!
Posted by siaw23
こんにちは。I’m Emmanuel, and I’ve received some updates for you!
Keep away from double sort solid when serialising attributes
ActiveModel::Attribute#worth already casts mannequin attributes when persisting fashions, nevertheless some mannequin attribute sorts attempt to solid a given worth earlier than serialising it. This implies casting is finished twice typically. This PR fixes that, giving us some efficiency enhance.
Add potential to set the tags_format for QueryLogs
ActiveRecord::QueryLogs will get a brand new tags_format possibility. This makes it potential to specify if we need to use the default :legacy formatter or :sqlcommenter.
Facilitate use of any common ERB in database.yml
DummyCompiler has been changed with ERB::Compiler. True to what dummy compilers do, it’d blow up when one tried to make use of ERB in a YAML key. This PR makes it potential to make use of ERB in YAML keys. Whereas at it, we additionally deprecated config.active_record.suppress_multiple_database_warning.
Rails.error.report now marks errors as reported
Rails.error.report now marks errors as reported to keep away from reporting them twice. This PR additionally permits catching and reporting errors exterior of the execution context.
We noticed 23 contributors within the final seven days.
That’s it. Till subsequent week!
Subscribe to get these updates mailed to you.