1ZUIPOʑΨοπϦ͍ͬͯΔ w ྫ͑.BDLFSFMɺͯϒͷόοΫΤϯυ4DBMBͩ͠ɺ.BDLFSFM BHFOUʑͰ(P͕͋Γ·͢ w ͍͔ʹͯ͠զʑͷͷ1FSMϓϩμΫτΛ4DBMBͰϦϓϨʔε͔ͨ͠ 4DBMB.BUTVSJ એ w ΫϥΠΞϯτ4XJGU ,PUMJO 5ZQF4DSJQU 3FBDU/BUJWF
User.first # SELECT `users`.* FROM `users` ORDER BY `users`.`id` ASC LIMIT 1 User.kept.first # SELECT `users`.* FROM `users` WHERE `users`.`discarded_at` IS NULL ORDER BY `users`.`id` ASC LIMIT 1
call(env) before = Thread.current[:_rack_request] Thread.current[:_rack_request] = Rack::Request.new(env) @app.call(env) ensure Thread.current[:_rack_request] = before end end