module TheNotification def self.configure(&block) yield @config ||= TheNotification::Configuration.new end def self.config @config end # Configuration class class Configuration include ActiveSupport::Configurable config_accessor :default_type end configure do |config| config.default_type = :html # :json end end