Class: Settings
- Inherits:
-
RailsSettings::CachedSettings
- Object
- RailsSettings::CachedSettings
- Settings
- Includes:
- PublicActivity::Model
- Defined in:
- app/models/defaults/settings.rb
Class Method Summary collapse
- .persisted? ⇒ Boolean
- .thing_scoped ⇒ Object
- .to_key ⇒ Object
- .update_attributes(attributes) ⇒ Object
Class Method Details
.persisted? ⇒ Boolean
37 38 39 |
# File 'app/models/defaults/settings.rb', line 37 def self.persisted? false end |
.thing_scoped ⇒ Object
29 30 31 |
# File 'app/models/defaults/settings.rb', line 29 def self.thing_scoped unscoped.where('target_type is NULL and target_id is NULL') end |
.to_key ⇒ Object
33 34 35 |
# File 'app/models/defaults/settings.rb', line 33 def self.to_key ['settings'] end |
.update_attributes(attributes) ⇒ Object
23 24 25 26 27 |
# File 'app/models/defaults/settings.rb', line 23 def self.update_attributes(attributes) attributes.each do |key, value| self[key] = value end end |