~/talk

Rediscovering ActiveRecord

Talkat RailsConf 2016 · 2016-05-04..05-06· [ruby-on-rails]

Shows how ActiveRecord turns a class into live objects by loading table schema (via schema_cache.columns_hash), building an ARel AST and statement cache with BindParam placeholders, executing binds to produce a result_set, and instantiating records with generated accessors. Covers the Attributes API and casting via ActiveModel::Type::Value including custom types (deserialize, cast, serialize), and the LazyAttributeHash that delays casting by storing raw values and types until access.

AI-written summary · about

  1. 0:00Start
  2. 2:42Introspection
  3. 7:02A cast type is a class derived from Active Model:: Type::Value
  4. 17:58Define all accessors and helper methods for attributes
  5. 18:35lib/active_record/ attribute_methods.rb file includes all the logic
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.