Sha256: 0f506db36dfc2bb8f7ea844c208c82cc370b8f8e0d5460abece631ae0dafa02c

Contents?: true

Size: 271 Bytes

Versions: 32

Compression:

Stored size: 271 Bytes

Contents

module SfxDb
  # Was an sfx_db connection set in database.yml to connect
  # directly to sfx?
  def self.connection_configured?
    config = ActiveRecord::Base.configurations["sfx_db"]
    return (! config.blank? &&
            ! config['adapter'].blank?)    
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
umlaut-3.0.0alpha12 app/models/sfx_db.rb
umlaut-3.0.0alpha11 app/models/sfx_db.rb
umlaut-3.0.0alpha10 app/models/sfx_db.rb
umlaut-3.0.0alpha9 app/models/sfx_db.rb
umlaut-3.0.0alpha8 app/models/sfx_db.rb
umlaut-3.0.0alpha7 app/models/sfx_db.rb
umlaut-3.0.0alpha6 app/models/sfx_db.rb
umlaut-3.0.0alpha5 app/models/sfx_db.rb
umlaut-3.0.0alpha4 app/models/sfx_db.rb
umlaut-3.0.0alpha3 app/models/sfx_db.rb
umlaut-3.0.0alpha2 app/models/sfx_db.rb
umlaut-3.0.0alpha1 app/models/sfx_db.rb