Module: SfxDb

Defined in:
app/models/sfx_db/az_title_v2.rb,
app/models/sfx_db.rb,
app/models/sfx_db/isbn.rb,
app/models/sfx_db/issn.rb,
app/models/sfx_db/title.rb,
app/models/sfx_db/target.rb,
app/models/sfx_db/object.rb,
app/models/sfx_db/az_title.rb,
app/models/sfx_db/publisher.rb,
app/models/sfx_db/sfx_db_base.rb,
app/models/sfx_db/target_service.rb,
app/models/sfx_db/az_letter_group.rb,
app/models/sfx_db/object_portfolio.rb,
app/models/sfx_db/az_additional_title.rb

Overview

The SFX A-Z "version 2" title table.

Defined Under Namespace

Classes: AzAdditionalTitle, AzLetterGroup, AzTitle, AzTitleV2, Isbn, Issn, Object, ObjectPortfolio, Publisher, SfxDbBase, Target, TargetService, Title

Class Method Summary (collapse)

Class Method Details

+ (Boolean) connection_configured?

Was an sfx_db connection set in database.yml to connect directly to sfx?



4
5
6
7
8
# File 'app/models/sfx_db.rb', line 4

def self.connection_configured?
  config = ActiveRecord::Base.configurations["sfx_db"]
  return (! config.blank? &&
          ! config['adapter'].blank?)    
end