Class: Sfx4::Global::Base
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Sfx4::Global::Base
- Defined in:
- app/models/sfx4/global/base.rb
Direct Known Subclasses
Class Method Summary collapse
-
.connection_configured? ⇒ Boolean
Was a SFX Global DB connection set in database.yml to connect directly to sfx?.
Instance Method Summary collapse
-
#readonly? ⇒ Boolean
All SFX things are read-only!.
Class Method Details
.connection_configured? ⇒ Boolean
Was a SFX Global DB connection set in database.yml to connect directly to sfx?
7 8 9 10 |
# File 'app/models/sfx4/global/base.rb', line 7 def self.connection_configured? config = ActiveRecord::Base.configurations["sfx4_global"] (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/global/base.rb', line 19 def readonly?() return true end |