词汇:abstraction

n. 抽象;抽象概念;提取;空想;心不在焉

相关场景

Finally, making it easier to go to production also means we ought to make it easy to be secure. Rails has been assembling high-level abstractions for the key components of an excellent authentication system for a long time to bring that ease. We’ve had has_secure_password since Rails 5, but also recently introduced generates_token_for :password_reset along with authenticate_by in Rails 7.1. Now, with Rails 8, we’re putting all the pieces together in a complete authentication system generator, which creates an excellent starting point for a session-based, password-resettable, metadata-tracking authentication system.
最后,使生产更容易也意味着我们应该使安全更容易。长期以来,Rails一直在为一个优秀的身份验证系统的关键组件组装高级抽象,以简化这一过程。我们从Rails 5开始就有has_secure_password,但最近在Rails 7.1中引入了generates_token_for:password_reset和authenticate_by。现在,使用Rails 8,我们将所有部分整合到一个完整的身份验证系统生成器中,该生成器为基于会话、密码可重置、元数据跟踪的身份验证体系创建了一个很好的起点。
>> Rails8