module ProactiveSupport
Constants
- ERROR
- INFO
- VERSION
- WARNING
Attributes
configuration[W]
Public Class Methods
level_to_bootstrap(level)
click to toggle source
# File lib/proactive_support.rb, line 24 def level_to_bootstrap(level) case level when INFO then 'info' when WARNING then 'warning' when ERROR then 'danger' else '' end end
Public Instance Methods
configuration()
click to toggle source
# File lib/proactive_support.rb, line 35 def configuration @configuration ||= Configuration.new.tap do |c| c.transient_expiration = 1.day end end
configure() { |configuration| ... }
click to toggle source
# File lib/proactive_support.rb, line 41 def configure yield(configuration) end