diff options
Diffstat (limited to 'lib/nickserver/source.rb')
-rw-r--r-- | lib/nickserver/source.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/nickserver/source.rb b/lib/nickserver/source.rb index edc57e9..dc0669a 100644 --- a/lib/nickserver/source.rb +++ b/lib/nickserver/source.rb @@ -3,7 +3,9 @@ require 'nickserver/adapters/celluloid_http' module Nickserver class Source - def initialize(adapter = Nickserver::Adapters::CelluloidHttp.new) + DEFAULT_ADAPTER_CLASS = Nickserver::Adapters::CelluloidHttp + + def initialize(adapter = DEFAULT_ADAPTER_CLASS.new) @adapter = adapter end |