Sha256: 944d0a31ff30c7ee2a5cc2924c33cd807fa665b8ee99e2fa3382c22689744b38
Contents?: true
Size: 354 Bytes
Versions: 3
Compression:
Stored size: 354 Bytes
Contents
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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
the_notification-0.5.1 | lib/the_notification/config.rb |
the_notification-0.5.0 | lib/the_notification/config.rb |
the_notification-0.0.1 | lib/the_notification/config.rb |