日常

ケ・セラ・セラ

rails5

Rails5でforce_sslのredirect status, HSTS header のコントロールが便利になる

読んだので簡単にまとめてみる試み。force_ssl 関連。 Rails 5 adds more control to fine tuning SSL usage | BigBinary Blog Rails で HTTPS を強制する config.force_ssl = true' を設定すると、middleware stack にActionDispatch::SSL` が挿入されるわ…

Rails5 で alias_method_chain が deprecated

Rails 5 deprecates alias_method_chain in favor of module prepend | BigBinary Blog 短くまとめてみる試み。 rails5 で alias_method_chain が deprecated となる。Module#prepend を使っていくことになる。 また、ruby 2.1 で Module#include と Module#…