lib/active_notifier/configurable.rb in active_notifier-0.4.0 vs lib/active_notifier/configurable.rb in active_notifier-0.4.1
- old
+ new
@@ -1,9 +1,11 @@
module ActiveNotifier
+ # ActiveNotifier support for configuration
module Configurable
extend ActiveSupport::Concern
+ # Core functions for Configuration
module ClassMethods
# Configure for ActiveNotifier.
#
# @example
# ActiveNotifier.configure do |config|
@@ -20,9 +22,10 @@
def config
@config ||= Configuration.new
end
end
+ # Store the configuration data
class Configuration
# Alias const for ActiveNotifier
# @!attribute [r]
attr_reader :const_name