lib/adhearsion/punchblock_plugin.rb in adhearsion-2.5.4 vs lib/adhearsion/punchblock_plugin.rb in adhearsion-2.6.0
- old
+ new
@@ -1,12 +1,11 @@
# encoding: utf-8
+require 'adhearsion/plugin'
+require 'adhearsion/punchblock_plugin/initializer'
+
module Adhearsion
class PunchblockPlugin < Plugin
- extend ActiveSupport::Autoload
-
- autoload :Initializer
-
config :punchblock do
enabled true , :transform => Proc.new { |v| v == 'true' }, :desc => "Enable or disable Punchblock connectivity to a Voice server"
platform :xmpp , :transform => Proc.new { |v| v.to_sym }, :desc => <<-__
Platform punchblock shall use to connect to the Telephony provider. Currently supported values:
- :xmpp