Sha256: c047046efb1d474dd8f9e01dc0371487cd71df108fb9ae06fac347b25cd2b83e

Contents?: true

Size: 416 Bytes

Versions: 15

Compression:

Stored size: 416 Bytes

Contents

require 'active_support/core_ext/hash/except'

require 'sequel/extensions/migration'

require 'sequel-rails/configuration'
require 'sequel-rails/runtime'
require 'sequel-rails/railties/benchmarking_mixin'

module Rails
  module Sequel

    def self.setup(environment)
      ::Sequel.connect({:logger => configuration.logger}.merge(::Rails::Sequel.configuration.environment_for(environment.to_s)))
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
talentbox-sequel-rails-0.3.10 lib/sequel-rails/setup.rb
talentbox-sequel-rails-0.3.9 lib/sequel-rails/setup.rb
talentbox-sequel-rails-0.3.8 lib/sequel-rails/setup.rb
talentbox-sequel-rails-0.3.7 lib/sequel-rails/setup.rb
talentbox-sequel-rails-0.3.6 lib/sequel-rails/setup.rb
talentbox-sequel-rails-0.3.5 lib/sequel-rails/setup.rb
talentbox-sequel-rails-0.3.4 lib/sequel-rails/setup.rb
talentbox-sequel-rails-0.3.3 lib/sequel-rails/setup.rb
talentbox-sequel-rails-0.3.2 lib/sequel-rails/setup.rb
talentbox-sequel-rails-0.3.1 lib/sequel-rails/setup.rb
talentbox-sequel-rails-0.3.0 lib/sequel-rails/setup.rb
talentbox-sequel-rails-0.2.3 lib/sequel-rails/setup.rb
talentbox-sequel-rails-0.2.2 lib/sequel-rails/setup.rb
talentbox-sequel-rails-0.2.1 lib/sequel-rails/setup.rb
talentbox-sequel-rails-0.2.0 lib/sequel-rails/setup.rb