This gem makes easy to define and load your's application constants using YAML files.
It's quite simple to use it, plug, confire and have access to your constants. For instance:
# initializers/01_constants.rb
FastConstants.configuration do |config|
config.directory = Rails.root.join('config/constants/*.yml')
config.name = 'MyConstants'
endAdd this line to your application's Gemfile:
gem "fast_constants"And then execute:
$ bundleOr install it yourself as:
$ gem install fast_constants