Skip to content

FII11tech/fast_constants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast Constants

This gem makes easy to define and load your's application constants using YAML files.

Usage

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'
end

Installation

Add this line to your application's Gemfile:

gem "fast_constants"

And then execute:

$ bundle

Or install it yourself as:

$ gem install fast_constants