Class: Sfx4::Local::Base

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
Abstract::Base
Defined in:
app/models/sfx4/local/base.rb

Direct Known Subclasses

AzExtraInfo, AzLetterGroup, AzTitle, AzTitleSearch

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Abstract::Base

fetch_urls, sunspot?

Class Method Details

.connection_configured?Boolean

Was a SFX DB connection set in database.yml to connect directly to sfx?

Returns:

  • (Boolean)

5
6
7
8
# File 'app/models/sfx4/local/base.rb', line 5

def self.connection_configured?
  config = ActiveRecord::Base.configurations["sfx_db"]
  (not (config.nil? or config.blank? or config["adapter"].blank?))
end

Instance Method Details

#readonly?Boolean

All SFX things are read-only!

Returns:

  • (Boolean)

19
20
21
# File 'app/models/sfx4/local/base.rb', line 19

def readonly?() 
  return true
end