Module: Sinbotra::Messenger::Handler

Defined in:
lib/sinbotra/messenger/handler.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.ensure_repos_connectedObject



8
9
10
11
# File 'lib/sinbotra/messenger/handler.rb', line 8

def self.ensure_repos_connected
  Sinbotra::Bot::ConversationRepo.connect
  Sinbotra::Bot::UserRepo.connect
end

.included(base) ⇒ Object



3
4
5
6
# File 'lib/sinbotra/messenger/handler.rb', line 3

def self.included(base)
  ensure_repos_connected
  base.extend ClassMethods
end