Sha256: 346d41ae7048529960206b691e3184d0d00304f4304792bab9f149ea042a2fae

Contents?: true

Size: 442 Bytes

Versions: 47

Compression:

Stored size: 442 Bytes

Contents

module Ridgepole
  class ConnectionAdapters
    def self.mysql?
      defined?(ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter) && ActiveRecord::Base.connection.is_a?(ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter)
    end

    def self.postgresql?
      defined?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter) && ActiveRecord::Base.connection.is_a?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter)
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
ridgepole-0.8.0.rc1 lib/ridgepole/connection_adapters.rb
ridgepole-0.7.7 lib/ridgepole/connection_adapters.rb
ridgepole-0.7.6 lib/ridgepole/connection_adapters.rb
ridgepole-0.7.5 lib/ridgepole/connection_adapters.rb
ridgepole-0.7.5.beta3 lib/ridgepole/connection_adapters.rb
ridgepole-0.7.5.beta2 lib/ridgepole/connection_adapters.rb
ridgepole-0.7.5.beta lib/ridgepole/connection_adapters.rb
ridgepole-0.7.4 lib/ridgepole/connection_adapters.rb
ridgepole-0.7.3 lib/ridgepole/connection_adapters.rb
ridgepole-0.7.3.beta3 lib/ridgepole/connection_adapters.rb
ridgepole-0.7.3.beta2 lib/ridgepole/connection_adapters.rb
ridgepole-0.7.3.beta lib/ridgepole/connection_adapters.rb
ridgepole-0.7.2 lib/ridgepole/connection_adapters.rb
ridgepole-0.7.2.beta lib/ridgepole/connection_adapters.rb
ridgepole-0.7.1 lib/ridgepole/connection_adapters.rb
ridgepole-0.7.1.beta5 lib/ridgepole/connection_adapters.rb
ridgepole-0.7.1.beta4 lib/ridgepole/connection_adapters.rb
ridgepole-0.7.1.beta3 lib/ridgepole/connection_adapters.rb
ridgepole-0.7.1.beta2 lib/ridgepole/connection_adapters.rb
ridgepole-0.7.1.beta lib/ridgepole/connection_adapters.rb