Module: MonkeyNotification
- Defined in:
- lib/monkey_notification.rb,
lib/monkey_notification/railtie.rb,
lib/monkey_notification/configuration.rb
Defined Under Namespace
Classes: Configuration, Railtie
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
28 29 30 |
# File 'lib/monkey_notification.rb', line 28 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
30 31 32 33 |
# File 'lib/monkey_notification.rb', line 30 def configure self.configuration ||= Configuration.new yield(configuration) end |
.initialize ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/monkey_notification.rb', line 18 def self.initialize MonkeyNotification.configure do |config| config.environment_name = RAILS_ENV if defined?(RAILS_ENV) config.project_root = RAILS_ROOT if defined?(RAILS_ROOT) config.framework = "Rails: #{::Rails::VERSION::STRING}" if defined?(::Rails::VERSION) end end |