LoginSignup
0
1

More than 5 years have passed since last update.

config gem勉強

Last updated at Posted at 2017-04-07

セッティングを便利で管理、使えるgem

github: https://github.com/railsconfig/config

  • railsでymlファイルを更新した後、直ちに確認したい時
Settings.reload!
  • ymlにembedded Rubyも使えること

メリット: 綺麗, railsが起動する時、embedded Rubyが正しいのかをチェックしてくれる
例えば、#{Rails.root}/config/environments/development.ymlに下記の内容を記載できる

max: <%= 1.megabytes %>
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1