Class: Sfx4::Local::Base
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Sfx4::Local::Base
- Extended by:
- Abstract::Base
- Defined in:
- app/models/sfx4/local/base.rb
Direct Known Subclasses
Class Method Summary collapse
-
.connection_configured? ⇒ Boolean
Was a SFX DB connection set in database.yml to connect directly to sfx?.
Instance Method Summary collapse
-
#readonly? ⇒ Boolean
All SFX things are read-only!.
Methods included from Abstract::Base
Class Method Details
.connection_configured? ⇒ Boolean
Was a SFX DB connection set in database.yml to connect directly to sfx?
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!
19 20 21 |
# File 'app/models/sfx4/local/base.rb', line 19 def readonly?() return true end |