Sha256: b5ad5366b1a8284dba3882c65b7b96e3dbbe13c2ba1f8753299fcf62701a4c78

Contents?: true

Size: 490 Bytes

Versions: 8

Compression:

Stored size: 490 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)
      puts "[sequel] Setting up the #{environment.inspect} environment:"

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

  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
fredwu-sequel-rails-0.2.0 lib/sequel-rails/setup.rb
sequel-rails-0.1.8 lib/sequel-rails/setup.rb
sequel-rails-0.1.7 lib/sequel-rails/setup.rb
sequel-rails-0.1.6 lib/sequel-rails/setup.rb
sequel-rails-0.1.5 lib/sequel-rails/setup.rb
sequel-rails-0.1.4 lib/sequel-rails/setup.rb
sequel-rails-0.1.3 lib/sequel-rails/setup.rb
sequel-rails-0.1.2 lib/sequel-rails/setup.rb