Class: Coupler::Models::Project

Inherits:
Sequel::Model
  • Object
show all
Includes:
CommonModel
Defined in:
lib/coupler/models/project.rb

Instance Method Summary collapse

Methods included from CommonModel

#after_save, #before_create, #before_save, #before_update, included, #save!, #touch!

Instance Method Details

#local_database(&block) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/coupler/models/project.rb', line 8

def local_database(&block)
  Sequel.connect(local_connection_string, {
    :loggers => [Coupler::Logger.instance],
    :max_connections => 50,
    :pool_timeout => 60
  }, &block)
end