Commit 633213c3 authored by Sergey Gernyak's avatar Sergey Gernyak

Account manager and account session manager init

parent 53ff8227
......@@ -175,7 +175,7 @@ module BetfairApiNgRails
extend Api::RequestMethods::All
class << self
attr_accessor :log
attr_accessor :log, :account_manager, :account_session_manager
end
def self.config(&block)
......
......@@ -3,6 +3,8 @@ module BetfairApiNgRails
config.after_initialize do
BetfairApiNgRails.connection = BetfairApiNgRails::Api::Connection.new
BetfairApiNgRails.log = BetfairApiNgRails::Api::Logs::FileLogger.new Rails.root, Rails.env
BetfairApiNgRails.account_manager = BetfairApiNgRails::AccountManager.instance
BetfairApiNgRails.account_session_manager = BetfairApiNgRails::AccountSessionManager.instance
end
console do
......@@ -10,4 +12,4 @@ module BetfairApiNgRails
end
end
end
\ No newline at end of file
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment