{"title":"ActiveRecord::Base#with_scope\u3068scoped_access","url":"https://ichiro-tanaka.hatenadiary.org/entry/20090210/1234234223","type":"rich","width":"100%","published":"2009-02-10 11:50:23","image_url":null,"height":"190","blog_url":"https://ichiro-tanaka.hatenadiary.org/","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fichiro-tanaka.hatenadiary.org%2Fentry%2F20090210%2F1234234223\" title=\"ActiveRecord::Base#with_scope\u3068scoped_access - \u30bf\u30ca\u30ab\u30a4\u30c1\u30ed\u30a6\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/ichiro_tanaka/","blog_title":"\u30bf\u30ca\u30ab\u30a4\u30c1\u30ed\u30a6\u306e\u65e5\u8a18","provider_name":"Hatena Blog","author_name":"ichiro_tanaka","categories":["Rails","Ruby","ActiveRecord"],"description":"AR\u306efind\u3092\u3042\u308b\u6761\u4ef6\u3067\u7d5e\u3063\u3066\u304a\u304d\u305f\u3044\u5834\u5408\u3002with_scope\u304c\u4f7f\u3048\u308b\u3002Rails2.1\u4ee5\u964d\uff1f\u306b\u306fnamed_scope\u3068\u3044\u3046\u306e\u3082\u3042\u308b\u3089\u3057\u3044\u3051\u3069\u3001\u4eca\u56de\u306fRails1.2\u3067\u3002\u4f8b\u3048\u3070AR\u306e\u8ad6\u7406\u524a\u9664\u30d7\u30e9\u30b0\u30a4\u30f3\u3001acts_as_paranoid\u3067\u306fdeleted_at\u306b\u524a\u9664\u30d5\u30e9\u30b0\u3092\u7acb\u3066\u308b\u3002\u901a\u5e38\u306efind\u3067\u306f\u524a\u9664\u30d5\u30e9\u30b0\u304c\u7acb\u3063\u3066\u308b\u30ec\u30b3\u30fc\u30c9\u306f\u8aad\u307e\u306a\u3044\u3088\u3046\u306bAlias\u3055\u308c\u3066\u304a\u308a\u3001\u3042\u3048\u3066\u524a\u9664\u30ec\u30b3\u30fc\u30c9\u3092find\u3057\u305f\u3044\u3068\u304d\u306ffind_with_deleted\uff08\uff1d\u30aa\u30ea\u30b8\u30ca\u30eb\u306efind\uff09\u3092\u547c\u3079\u3070\u3044\u3044\u3002\u306a\u3069\u3002acts_as_paranoid\u306e\u3088\u3046\u306b\u3001\u30e2\u30c7\u30eb\u5074\u3067\u5e38\u306b\u6761\u4ef6\u3092\u7d5e\u3063\u3066\u304a\u304f\u5834\u5408\u3001\u305f\u3068\u3048\u3070sakura\u30ab\u30e9\u30e0\u304cNU\u2026","provider_url":"https://hatena.blog"}