Skip to content

Instantly share code, notes, and snippets.

@the-spectator
Created August 22, 2020 16:59
Show Gist options
  • Save the-spectator/f1671376eb6c973f5cdbe91929516913 to your computer and use it in GitHub Desktop.
Save the-spectator/f1671376eb6c973f5cdbe91929516913 to your computer and use it in GitHub Desktop.
ActiveSupport Configurable example
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