Hard work by INTERNET

ベンチャーで働くひとりぼっちWEB開発者が頑張るブログ

2019-09-16から1日間の記事一覧

Rails migration guide does not mention the removal of render :text #37145

github.com render :text が削除されたことがアップグレード移行ガイドにに書かれていない、という指摘のissueだ。 本文 render :text was removed in 5.1 but it is not mentioned in the upgrading guide for 5.1. render :textが5.1から削除されたが、ア…

ActiveRecord::Base#dup が動的属性を含めてくれない(does not include dynamic attributes) #34823

github.com 本文 rails4.2.xでは、 lib/active_record/core.rb#initialize_dup が正しく複製してくれるけれども、rails5.2ではpullするだけ MyModel._default_attributes によって、すでに複製したものを削除する。 Yes this still occurs on 5-2-stable. I'…

railsのアンダースコアに変換するメソッドの戻り値がおかしいんけど

github.com String inflection method underscore giving wrong output #37163 質問 アンダースコアライズする文字列変換文字列のアウトプットがおかしいんだが? Open up rails console and type - "ActLikeStar".underscore gives you 'act_like_star' whi…