Created
August 22, 2020 16:59
-
-
Save the-spectator/f1671376eb6c973f5cdbe91929516913 to your computer and use it in GitHub Desktop.
ActiveSupport Configurable example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'active_support/configurable' | |
# Defination of config Object | |
class ApplicationConfig | |
include ActiveSupport::Configurable | |
config_accessor :logger | |
config_accessor :log_level do | |
:debug | |
end | |
config_accessor :async_enabled do | |
false | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment