240 发简信
IP属地:北京
  • ActiveRecord::AttributeMethods

    ActiveRecord::Base是如何生成attributes_methods?关于这个问题相信看过《Ruby元编程》一书的伙伴能了解到从,...

  • ActiveRecord::Timestamp

    active record 在create/update的时候会默认更新created_at/updated_at字段为当前字段,可以通过con...

  • ActiveRecord::Associations

    负责ActiveRecord::Base的association部分的实现,也就是has_many, has_one等等。先看到我们平时用的ha...

  • ActiveModel::SecurePassword

    这个模块想必大家都会很熟悉,在rails的基础教程里负责password的加密和验证,主要就是给ActiveRecord::Base添加了pas...

  • ActiveRecord::AutosaveAssociation

    ActiveRecord::AutosaveAssociation 这个模块主要是负责自动保存associated records当,它的par...

  • Active Record 源码阅读

    根据ActiveRecord::Base里的继承链向上阅读 ActiveRecord::Suppressor 先是Suppressor,先看功能...

  • ActiveRecord::NestedAttributes

    ActiveRecord::NestedAttributes nest attributes的实现部分,也就是嵌套数据部分: 主要部分为modu...

  • ActiveRecord::Transaction

    ActiveRecord::Transaction 实现transaction部分的功能。 暴露给我们的方法主要是在ClassMethods里:...

  • ActiveRecord::TouchLater

    ActiveRecord::TouchLater 用了touch_later,来touch的话,会将touch延迟到别的语句执行完之后在comm...