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.5 app/models/sfx_db.rb
umlaut-3.0.4 app/models/sfx_db.rb
umlaut-3.0.3 app/models/sfx_db.rb
umlaut-3.0.2 app/models/sfx_db.rb
umlaut-3.0.1 app/models/sfx_db.rb
umlaut-3.0.0 app/models/sfx_db.rb
umlaut-3.0.0rc1 app/models/sfx_db.rb
umlaut-3.0.0beta10 app/models/sfx_db.rb
umlaut-3.0.0beta9 app/models/sfx_db.rb
umlaut-3.0.0beta8 app/models/sfx_db.rb
umlaut-3.0.0beta7 app/models/sfx_db.rb
umlaut-3.0.0beta6 app/models/sfx_db.rb
umlaut-3.0.0beta5 app/models/sfx_db.rb
umlaut-3.0.0beta4 app/models/sfx_db.rb
umlaut-3.0.0beta3 app/models/sfx_db.rb
umlaut-3.0.0beta2 app/models/sfx_db.rb
umlaut-3.0.0beta1 app/models/sfx_db.rb
umlaut-3.0.0alpha15 app/models/sfx_db.rb
umlaut-3.0.0alpha14 app/models/sfx_db.rb
umlaut-3.0.0alpha13 app/models/sfx_db.rb