Rails
Rails Log Output with SQL Query Count
Rails adds SQL query counts to logs, improving developers ability to optimize application performance by providing more detailed data on database interactionsRails 7.2 adds Rubocop by default to new
All new applications using Rails 7.2 will have rubocop gem by default.Rails 7.2 Rate Limiting in Controllers
Rails 7.2 provides in built method rate_limit to define rate limiting rules in the controller itself.Rails 7.2 adds allow_browser to set minimum
Rails 7.2 allows us to set minimum browser version for compatibility.Rails 7.1.2 Ignores Implicit Strict Locals
Templates that use strict locals can not accept anything other than those defined.Rails 7.2 Adds Brakeman gem by Default
All new applications using Rails 7.2 will have Brakeman gem by default for static analysis for security vulnerabilities.Rails 7.1 explain Accepts Options
Adding analyze and verbose as ActiveRecord::Relation#explain options give us deeper insight into query performance.Rails 7.1 ActiveRecord regroup Method
With regroup and regroup! methods we can override the group_valuesRails 7.1 allows resetting singular
Query database again to retrieve the associated record by resetting the cache on singular associations.Rails ErrorReporter#unexpected Method
The new method will report in production but raise in other environments, making it easier to debug.