Skip to content

Commit

Permalink
Properly load the database provider.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonid Beder committed Apr 10, 2015
1 parent e67e60b commit 5f56ba8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/health_monitor/configuration.rb
Expand Up @@ -6,14 +6,14 @@ class Configuration
attr_reader :providers

def initialize
@providers = Set.new([:database])
database
end

PROVIDERS.each do |provider|
define_method provider do |&block|
require "health_monitor/providers/#{provider}"

@providers << provider
(@providers ||= Set.new) << provider

"HealthMonitor::Providers::#{provider.capitalize}".constantize
end
Expand Down
2 changes: 1 addition & 1 deletion lib/health_monitor/version.rb
@@ -1,3 +1,3 @@
module HealthMonitor
VERSION = '2.0.1'.freeze
VERSION = '2.0.2'.freeze
end

0 comments on commit 5f56ba8

Please sign in to comment.